Skip to content

Commit

Permalink
Fixed bug to make it actually combine old and new runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
wendycwong committed May 10, 2016
1 parent 4292342 commit 15a3220
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/collectUnitTestRunTime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 15a3220

Please sign in to comment.