diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-28 17:05:40 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-28 17:05:40 (GMT) |
commit | 02c54b8d30a5010f074cba3a51ee814f739730ea (patch) | |
tree | ee2b6303331156495ea2e30db76420774fe9ead9 /commands | |
parent | 1b32c98f14766d3e956c52d6b803b19e5126c893 (diff) |
Build before testing
Diffstat (limited to 'commands')
-rwxr-xr-x | commands/run-tests | 6 |
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) |