diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-07-26 15:01:26 +0300 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-07-26 15:01:26 +0300 |
commit | a5cc1c90587d859d5f1e7f6d9ee49024cd2e9481 (patch) | |
tree | cd063cb14956dac6b1d5df0a463996c1bcb5159d | |
parent | 90c64917b59e83556454d1338634473cdcd952a9 (diff) |
regression: aggregate_results script exit with fail/success status of build.
-rwxr-xr-x | scripts/automation/regression/aggregate_results.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/automation/regression/aggregate_results.py b/scripts/automation/regression/aggregate_results.py index eb0632ec..c7c61ea6 100755 --- a/scripts/automation/regression/aggregate_results.py +++ b/scripts/automation/regression/aggregate_results.py @@ -622,11 +622,13 @@ if __name__ == '__main__': last_status = category_dict_status.get(scenario, 'Successful') # assume last is passed if no history if err or len(error_tests): # has fails + exit_status = 1 if is_good_status(last_status): current_status = 'Failure' else: current_status = 'Still Failing' else: + exit_status = 0 if is_good_status(last_status): current_status = 'Successful' else: @@ -652,3 +654,6 @@ if __name__ == '__main__': with open(args.output_titlefile, 'w') as f: print('Writing output file: %s' % args.output_titlefile) f.write(mailtitle_output) + +# exit + sys.exit(exit_status) |