Skip to content

Commit bea8e2d

Browse files
Make sure we clean up the result path on failure
1 parent 24f338c commit bea8e2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/benchmark_suite.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def run(ruby:, ruby_description:)
5555
bench_data[entry.name] = process_benchmark_result(result_json_path, result[:command], delete_file: !caller_json_path)
5656
else
5757
bench_failures[entry.name] = result[:status].exitstatus
58+
FileUtils.rm_f(result_json_path) unless caller_json_path
5859
end
5960
end
6061

0 commit comments

Comments
 (0)