From 02c54b8d30a5010f074cba3a51ee814f739730ea Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Fri, 28 Dec 2012 17:05:40 +0000 Subject: Build before testing --- (limited to 'commands') 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) -- cgit v0.9.1