Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rwxr-xr-xcommands/run-tests6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/run-tests b/commands/run-tests
index ace868f..64d1970 100755
--- a/commands/run-tests
+++ b/commands/run-tests
@@ -23,8 +23,7 @@ def _run_ui_tests():
logs_path = os.path.join(profile_path, "logs")
run.collect_logs(logs_path)
- if not result:
- sys.exit(1)
+ return result
parser = argparse.ArgumentParser()
parser.add_argument("module", nargs="?", help="name of the module to test")
@@ -40,4 +39,5 @@ else:
if not test.test():
sys.exit(1)
- _run_ui_tests()
+ if not _run_ui_tests():
+ sys.exit(1)