[Piglit] [PATCH 04/10] xts.py: update error message when X_TEST_SUITE doesn't exist

Dylan Baker baker.dylan.c at gmail.com
Thu Jan 29 15:31:19 PST 2015


This fixes 3 issues.
1) we don't use symlinks in bin/ anymore
2) print the message to stderr
3) don't use returncode 0, it is an error after all

Signed-off-by: Dylan Bake <dylanx.c.baker at intel.com>
---
 tests/xts.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/xts.py b/tests/xts.py
index 2672917..0e277dc 100644
--- a/tests/xts.py
+++ b/tests/xts.py
@@ -197,9 +197,8 @@ def _populate_profile():
     return profile
 
 
-# If the symlink for the XTS has not been created exit
 if not os.path.exists(X_TEST_SUITE):
-    print("xtest symlink not found!")
-    sys.exit(0)
+    print("Error: xtest not found.", file=sys.stderr)
+    sys.exit(1)
 
 profile = _populate_profile()  # pylint: disable=invalid-name
-- 
2.2.2



More information about the Piglit mailing list