From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Cc: Dylan Baker <baker.dylan.c@gmail.com>
Subject: [PATCH piglit] igt: Make "warn" status work again as expected.
Date: Tue, 19 Apr 2016 15:33:36 +0200 [thread overview]
Message-ID: <571633B0.1080804@linux.intel.com> (raw)
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
next reply other threads:[~2016-04-19 13:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-19 13:33 Maarten Lankhorst [this message]
2016-04-19 18:13 ` [PATCH piglit] igt: Make "warn" status work again as expected Dylan Baker
2016-04-20 10:56 ` [PATCH v2 piglit] igt: Make "warn" status work again as expected, v2 Maarten Lankhorst
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=571633B0.1080804@linux.intel.com \
--to=maarten.lankhorst@linux.intel.com \
--cc=baker.dylan.c@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.