File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 327327 ENV["RESULTS_FILE"] = joinpath(@__DIR__, "output.txt")
328328 n = write(ENV["RESULTS_FILE"], "output-txt-content")
329329 @info "Wrote $(n) bytes"
330+ if haskey(ENV, "JULIAHUB_RESULTS_UPLOAD_DIR")
331+ open(ENV["JULIAHUB_RESULTS_UPLOAD_DIR"], "output.txt") do io
332+ write(io, "output-txt-content")
333+ end
334+ end
330335 """ noenv ; alias= " output-file"
331336 )
332337 job = JuliaHub. wait_job (job)
351356 # Job output with a tarball:
352357 job, _ = submit_test_job (
353358 JuliaHub. script """
354- odir = joinpath(@__DIR__, "output_files")
355- mkdir(odir)
359+ odir = if haskey(ENV, "JULIAHUB_RESULTS_UPLOAD_DIR")
360+ ENV["JULIAHUB_RESULTS_UPLOAD_DIR"]
361+ else
362+ d = joinpath(@__DIR__, "output_files")
363+ mkdir(d)
364+ d
365+ end
356366 write(joinpath(odir, "foo.txt"), "output-txt-content-1")
357367 write(joinpath(odir, "bar.txt"), "output-txt-content-2")
358368 @info "Wrote: odir"
You can’t perform that action at this time.
0 commit comments