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.w...@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

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to