Skip to content

Commit e7a0f4f

Browse files
committed
improve runtests.jl
1 parent 3b246e9 commit e7a0f4f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test/runtests.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,15 @@ function runtests(testfiles=String[])
4646
try
4747
open(stdout_path, "w") do stdout_io
4848
open(stderr_path, "w") do stderr_io
49-
proc = run(pipeline(Cmd(cmd; ignorestatus=true), stdout=stdout_io, stderr=stderr_io); wait=false)
50-
wait(proc)
49+
try
50+
proc = run(pipeline(Cmd(cmd), stdout=stdout_io, stderr=stderr_io); wait=false)
51+
wait(proc)
52+
catch ex
53+
println("Test Error: an exception occurred while running the test file $f :")
54+
println(ex)
55+
nerror += 1
56+
push!(errorfiles, f)
57+
end
5158
end
5259
end
5360
stdout_content = read(stdout_path, String)

0 commit comments

Comments
 (0)