Skip to content

Commit 6b0486a

Browse files
committed
more set result changes
1 parent 4547efc commit 6b0486a

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

test/jobenvs/job-exposed-port/server.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,9 @@ serve(; host="0.0.0.0", port=PORT)
3030

3131
@info "Exiting the server"
3232
ENV["RESULTS"] = results_json()
33+
if haskey(ENV, "JULIAHUB_RESULTS_SUMMARY_FILE")
34+
open(ENV["JULIAHUB_RESULTS_SUMMARY_FILE"], "w") do io
35+
write(io, ENV["RESULTS"])
36+
end
37+
end
3338
println(ENV["RESULTS"])

test/jobenvs/job1/script.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ results = Dict(
3434

3535
@info "Storing RESULTS:\n$(results)"
3636
ENV["RESULTS"] = JSON.json(results)
37+
if haskey(ENV, "JULIAHUB_RESULTS_SUMMARY_FILE")
38+
open(ENV["JULIAHUB_RESULTS_SUMMARY_FILE"], "w") do io
39+
write(io, ENV["RESULTS"])
40+
end
41+
end

test/jobenvs/sysimage/script.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ ENV["RESULTS"] = """
1616
"hello": "$(hello)"
1717
}
1818
"""
19+
if haskey(ENV, "JULIAHUB_RESULTS_SUMMARY_FILE")
20+
open(ENV["JULIAHUB_RESULTS_SUMMARY_FILE"], "w") do io
21+
write(io, ENV["RESULTS"])
22+
end
23+
end
1924
@info ENV["RESULTS"]

0 commit comments

Comments
 (0)