Skip to content

Commit bca6f65

Browse files
committed
Hopefully fix things by moving the import closer to the call.
1 parent 0b89326 commit bca6f65

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/ParallelTestRunner.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,7 @@ function addworkers(X; kwargs...)
266266
exeflags = exe[2:end]
267267

268268
return withenv("JULIA_NUM_THREADS" => 1, "OPENBLAS_NUM_THREADS" => 1) do
269-
procs = addprocs(X; exename, exeflags, kwargs...)
270-
Distributed.remotecall_eval(
271-
Main, procs, quote
272-
import ParallelTestRunner
273-
end
274-
)
275-
procs
269+
addprocs(X; exename, exeflags, kwargs...)
276270
end
277271
end
278272
addworker(; kwargs...) = addworkers(1; kwargs...)[1]
@@ -658,6 +652,7 @@ function runtests(ARGS; testfilter = Returns(true), RecordType = TestRecord,
658652
# run the test
659653
put!(printer_channel, (:started, test, wrkr))
660654
result = try
655+
Distributed.remotecall_eval(Main, wrkr, :(import ParallelTestRunner))
661656
remotecall_fetch(runtest, wrkr, RecordType, test_runners[test], test,
662657
init_code, io_ctx.color)
663658
catch ex

0 commit comments

Comments
 (0)