diff options
author | Robert Guo <robert.guo@10gen.com> | 2017-06-28 16:57:51 -0400 |
---|---|---|
committer | Robert Guo <robert.guo@10gen.com> | 2017-07-05 17:35:01 -0400 |
commit | 2aefd80d1acea065c77bd3bd69abf686a27ae3e0 (patch) | |
tree | f95eef11cf51cd686a96d74b14fce91e5525c479 /buildscripts | |
parent | 074a953e31182fdc83416b6f659dd374eccd0bf9 (diff) | |
download | mongo-2aefd80d1acea065c77bd3bd69abf686a27ae3e0.tar.gz |
SERVER-29398 add mode to combine_report.py to not signal test failure with exit code
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/combine_reports.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/buildscripts/combine_reports.py b/buildscripts/combine_reports.py index 22a966340ab..d7fe0eb5ece 100755 --- a/buildscripts/combine_reports.py +++ b/buildscripts/combine_reports.py @@ -51,6 +51,11 @@ def main(): dest="ignore_missing", action="store_true", help="Ignore any input report file that does not exist.") + parser.add_option("-x", "--no-report-exit", + dest="report_exit", + default=True, + action="store_false", + help="Do not exit with a non-zero code if any test in the report fails.") (options, args) = parser.parse_args() @@ -78,7 +83,10 @@ def main(): else: print(json.dumps(combined_report)) - sys.exit(report_exit(combined_test_report)) + if options.report_exit: + sys.exit(report_exit(combined_test_report)) + else: + sys.exit(0) if __name__ == "__main__": |