All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH piglit] igt: Make "warn" status work again as expected.
@ 2016-04-19 13:33 Maarten Lankhorst
  2016-04-19 18:13 ` Dylan Baker
  0 siblings, 1 reply; 3+ messages in thread
From: Maarten Lankhorst @ 2016-04-19 13:33 UTC (permalink / raw)
  To: Intel Graphics Development; +Cc: Dylan Baker

When writing a patch that adds a igt_warn() when lockdep is unavailable
I noticed that the warn error doesn't work any more. Fix this by monitoring
stderr, and only setting 'pass' when stderr is empty.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Dylan Baker <baker.dylan.c@gmail.com>
---
diff --git a/tests/igt.py b/tests/igt.py
index 7ebb03646b50..1e5d2f111fa6 100644
--- a/tests/igt.py
+++ b/tests/igt.py
@@ -114,7 +114,9 @@ class IGTTest(Test):
     def interpret_result(self):
         super(IGTTest, self).interpret_result()
 
-        if self.result.returncode == 0:
+        if self.result.returncode == 0 and len(self.result.err) > 0:
+            self.result.result = 'warn'
+        elif self.result.returncode == 0:
             self.result.result = 'pass'
         elif self.result.returncode == 77:
             self.result.result = 'skip'

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-20 10:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 13:33 [PATCH piglit] igt: Make "warn" status work again as expected Maarten Lankhorst
2016-04-19 18:13 ` Dylan Baker
2016-04-20 10:56   ` [PATCH v2 piglit] igt: Make "warn" status work again as expected, v2 Maarten Lankhorst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.