From 15a3220aed753dcbf4cc1e45702c1ea367cf43d5 Mon Sep 17 00:00:00 2001 From: wendycwong Date: Tue, 10 May 2016 10:31:08 -0700 Subject: [PATCH] Fixed bug to make it actually combine old and new runs. --- scripts/collectUnitTestRunTime.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/collectUnitTestRunTime.py b/scripts/collectUnitTestRunTime.py index 08d3ec3288af..86aa33503b64 100755 --- a/scripts/collectUnitTestRunTime.py +++ b/scripts/collectUnitTestRunTime.py @@ -119,6 +119,7 @@ def write_result_summary(result_dict, directory_path, is_new_run): result_dict['mean_run_time_secs'] = np.mean(run_time) result_dict['run_time_std'] = np.std(run_time) result_dict["total_number_of_runs"] = len(run_time) + result_dict["run_time_secs"] = run_time # save results in json file with open(json_file, 'w') as test_file: @@ -148,7 +149,11 @@ def main(argv): else: # we may be in business repeat_number = int(argv[1]) # number of times to run a unit test command_lists = argv[2] # list of unit tests to run - is_new_run = bool(argv[3]) # brand new run or need to add onto old results + + if (argv[3] == 'True'): + is_new_run = True + else: + is_new_run = False # brand new run or need to add onto old results for command in command_lists.split(','): # for each command in the list