Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/runbenchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
end

juliacmd = benchmarkconfig.juliacmd
juliacmd = `$(Base.julia_cmd(juliacmd[1])) $color $(juliacmd[2:end])`
juliacmd = `$(Base.julia_cmd(juliacmd)) $color`

target_env = [k => v for (k, v) in benchmarkconfig.env]
withenv(target_env...) do
Expand Down Expand Up @@ -291,12 +291,16 @@
vinfo = first(split(sprint((io) -> versioninfo(io; verbose=true)), "Environment"))
juliasha = Base.GIT_VERSION_INFO.commit

open(output, "w") do iof
# Atomic write to the output file
temp_output = tempname()
open(temp_output, "w") do iof

Check warning on line 296 in src/runbenchmark.jl

View check run for this annotation

Codecov / codecov/patch

src/runbenchmark.jl#L295-L296

Added lines #L295 - L296 were not covered by tests
JSON.print(iof, Dict(
"results" => sprint(BenchmarkTools.save, results),
"vinfo" => vinfo,
"juliasha" => juliasha,
))
end
mv(temp_output, output; force=true)

Check warning on line 303 in src/runbenchmark.jl

View check run for this annotation

Codecov / codecov/patch

src/runbenchmark.jl#L303

Added line #L303 was not covered by tests

return nothing
end
Loading