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 <[email protected]> --- 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 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
