Skip to content

Commit

Permalink
fixes issue where benchmarks break if first test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nerfZael committed Jun 28, 2024
1 parent 0fa32df commit 0214491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run_test(test_name, iterations, avg_time_across_tests, completed_tests, rema
estimated_time_left = remaining_time_current_test + (estimated_avg_time_across_tests * remaining_tests)
total_completion_time = datetime.now() + timedelta(seconds=estimated_time_left)

new_costs = os.listdir("costs")
new_costs = os.listdir("costs") if os.path.exists("costs") else []
# Find all new cost files that are not in old costs
current_run_costs = list(set(new_costs) - set(old_costs))
for cost_file in current_run_costs:
Expand Down

0 comments on commit 0214491

Please sign in to comment.