Skip to content

Commit 2481347

Browse files
committed
Make quickfail work again.
1 parent 1e2dbed commit 2481347

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ParallelTestRunner.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,10 @@ function runtests(mod::Module, args::ParsedArgs;
917917
# act on the results
918918
if result isa AbstractTestRecord
919919
put!(printer_channel, (:finished, test, worker_id(wrkr), result))
920+
if anynonpass(result[]) && args.quickfail !== nothing
921+
stop_work()
922+
break
923+
end
920924

921925
if memory_usage(result) > max_worker_rss
922926
# the worker has reached the max-rss limit, recycle it
@@ -929,6 +933,7 @@ function runtests(mod::Module, args::ParsedArgs;
929933
put!(printer_channel, (:crashed, test, worker_id(wrkr)))
930934
if args.quickfail !== nothing
931935
stop_work()
936+
break
932937
end
933938

934939
# the worker encountered some serious failure, recycle it

0 commit comments

Comments
 (0)