[Piglit] [PATCH 2/2] igt.py: don't check the environment when in dry-run mode

Thomas Wood thomas.wood at intel.com
Thu Mar 26 08:43:17 PDT 2015


Don't exit during the post run hook if the environment check fails and
dry-run mode is enabled.

Signed-off-by: Thomas Wood <thomas.wood at intel.com>
---
 tests/igt.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/igt.py b/tests/igt.py
index 8c7963b..8ffac8d 100644
--- a/tests/igt.py
+++ b/tests/igt.py
@@ -92,7 +92,7 @@ else:
 class IGTTestProfile(TestProfile):
     """Test profile for intel-gpu-tools tests."""
     def _pre_run_hook(self, opts):
-        if not check_environment():
+        if opts.execute and not check_environment():
             sys.exit(1)
 
 
-- 
2.1.0



More information about the Piglit mailing list