Skip to content

Commit fcfcd05

Browse files
committed
Make quickfail work again.
1 parent fa8f0ff commit fcfcd05

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
@@ -929,6 +929,10 @@ function runtests(mod::Module, args::ParsedArgs;
929929
# act on the results
930930
if result isa AbstractTestRecord
931931
put!(printer_channel, (:finished, test, worker_id(wrkr), result))
932+
if anynonpass(result[]) && args.quickfail !== nothing
933+
stop_work()
934+
break
935+
end
932936

933937
if memory_usage(result) > max_worker_rss
934938
# the worker has reached the max-rss limit, recycle it
@@ -941,6 +945,7 @@ function runtests(mod::Module, args::ParsedArgs;
941945
put!(printer_channel, (:crashed, test, worker_id(wrkr)))
942946
if args.quickfail !== nothing
943947
stop_work()
948+
break
944949
end
945950

946951
# the worker encountered some serious failure, recycle it

0 commit comments

Comments
 (0)