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
Copy file name to clipboardExpand all lines: src/ParallelTestRunner.jl
+19-16Lines changed: 19 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -677,12 +677,12 @@ function runtests(mod::Module, args::ParsedArgs;
677
677
jobs =something(args.jobs, default_njobs())
678
678
jobs =clamp(jobs, 1, length(tests))
679
679
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.")
680
-
workers=addworkers(min(jobs, length(tests)))
681
-
nworkers=length(workers)
680
+
nworkers=min(jobs, length(tests))
681
+
workers=fill(nothing, nworkers)
682
682
683
683
t0 =time()
684
684
results = []
685
-
running_tests =Dict{String, Tuple{Int, Float64}}() # test => (worker, start_time)
685
+
running_tests =Dict{String, Float64}() # test => start_time
686
686
test_lock =ReentrantLock() # to protect crucial access to tests and running_tests
687
687
688
688
done =false
@@ -743,9 +743,9 @@ function runtests(mod::Module, args::ParsedArgs;
743
743
line1 =""
744
744
745
745
# line 2: running tests
746
-
test_list =sort(collect(running_tests), by = x ->x[2][2])
747
-
status_parts =map(test_list) do(test, (wrkr, _))
748
-
"$test ($wrkr)"
746
+
test_list =sort(collect(keys(running_tests)), by = x ->running_tests[x])
747
+
status_parts =map(test_list) do test
748
+
"$test"
749
749
end
750
750
line2 ="Running: "*join(status_parts, ", ")
751
751
## truncate
@@ -765,7 +765,7 @@ function runtests(mod::Module, args::ParsedArgs;
0 commit comments