diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2017-05-09 18:20:30 -0400 |
---|---|---|
committer | Yves Duhem <yves.duhem@mongodb.com> | 2018-01-30 10:15:41 -0500 |
commit | db04f59b03186f4662b4fb8dceeffa6ff79874eb (patch) | |
tree | e73a4880ddf4d1b8d1bb799fdd40b4034e792219 /buildscripts | |
parent | 45749d3f89b318b55936514b4a34715920e7a93d (diff) | |
download | mongo-db04f59b03186f4662b4fb8dceeffa6ff79874eb.tar.gz |
SERVER-32931 burn_in_tests.py creates empty report if there are no new or modified tests
(cherry picked from commit e351e669b05a82c0aea1d71538efc0cd0bf94dc4)
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/burn_in_tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/buildscripts/burn_in_tests.py b/buildscripts/burn_in_tests.py index 7d2d8c5a997..6e39685ef8b 100644 --- a/buildscripts/burn_in_tests.py +++ b/buildscripts/burn_in_tests.py @@ -418,6 +418,8 @@ def main(): tests_by_task = _load_tests_file(values.test_list_file) # If there are no tests to run, carry on. if tests_by_task is None: + test_results = {"failures": 0, "results": []} + _write_report_file(test_results, values.report_file) sys.exit(0) # Run the executor finder. @@ -438,6 +440,7 @@ def main(): # If there are no changed tests, exit cleanly. if not changed_tests: print "No new or modified tests found." + _write_report_file({}, values.test_list_outfile) sys.exit(0) suites = resmokelib.parser.get_suites(values, changed_tests) tests_by_executor = create_executor_list(suites, exclude_suites) |