You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -572,7 +585,8 @@ function runtests(mod::Module, ARGS; test_filter = Returns(true), RecordType = T
572
585
end
573
586
jobs =clamp(jobs, 1, length(tests))
574
587
println(stdout, "Running $jobs tests in parallel. If this is too many, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.")
575
-
addworkers(min(jobs, length(tests)))
588
+
workers =addworkers(min(jobs, length(tests)))
589
+
nworkers =length(workers)
576
590
577
591
t0 =time()
578
592
results = []
@@ -604,7 +618,7 @@ function runtests(mod::Module, ARGS; test_filter = Returns(true), RecordType = T
604
618
textwidth(testgroupheader) +textwidth("") +
605
619
textwidth(workerheader); map(
606
620
x ->textwidth(x) +
607
-
3+ndigits(nworkers()), tests
621
+
3+ndigits(nworkers), tests
608
622
)
609
623
]
610
624
)
@@ -765,7 +779,7 @@ function runtests(mod::Module, ARGS; test_filter = Returns(true), RecordType = T
765
779
#
766
780
767
781
worker_tasks = Task[]
768
-
for p inworkers()
782
+
for p in workers
769
783
push!(worker_tasks, @asyncbegin
770
784
while!done
771
785
# if a worker failed, spawn a new one
@@ -780,16 +794,16 @@ function runtests(mod::Module, ARGS; test_filter = Returns(true), RecordType = T
0 commit comments