Skip to content

Commit 715f683

Browse files
committed
handle non zero exit status
1 parent 37229c2 commit 715f683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ println("jobid = $jobid")
1616

1717
# get job state from jobid
1818
getjobstate = jobid -> begin
19-
info = read(`scontrol show jobid=$jobid`, String)
19+
info = read(Cmd(`scontrol show jobid=$jobid`, ignorestatus=true), String)
2020
state = match(r"JobState=(\S*)", info)
2121
return state
2222
end

0 commit comments

Comments
 (0)