Skip to content

Commit 97859fe

Browse files
committed
fix distributed, typo in results file test
1 parent 33fb14a commit 97859fe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/jobs-live.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,13 @@ end
207207
end
208208

209209
@testset "[LIVE] JuliaHub.submit_job / distributed" begin
210+
script_path = joinpath(@__DIR__, "jobenvs", "job-dist")
210211
job, _ = submit_test_job(
211-
JuliaHub.appbundle(joinpath(@__DIR__, "jobenvs", "job-dist"), "script.jl");
212+
JuliaHub.script(;
213+
code=read(joinpath(script_path, "script.jl"), String),
214+
project=read(joinpath(script_path, "Project.toml"), String),
215+
manifest=read(joinpath(script_path, "Manifest.toml"), String),
216+
);
212217
nnodes=3,
213218
auth, alias="distributed",
214219
)
@@ -328,7 +333,7 @@ end
328333
n = write(ENV["RESULTS_FILE"], "output-txt-content")
329334
@info "Wrote $(n) bytes"
330335
if haskey(ENV, "JULIAHUB_RESULTS_UPLOAD_DIR")
331-
open(ENV["JULIAHUB_RESULTS_UPLOAD_DIR"], "output.txt") do io
336+
open(ENV["JULIAHUB_RESULTS_UPLOAD_DIR"], "w") do io
332337
write(io, "output-txt-content")
333338
end
334339
end

0 commit comments

Comments
 (0)