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
@@ -689,12 +689,12 @@ function runtests(mod::Module, args::ParsedArgs;
689
689
jobs =something(args.jobs, default_njobs())
690
690
jobs =clamp(jobs, 1, length(tests))
691
691
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.")
692
-
workers=addworkers(min(jobs, length(tests)))
693
-
nworkers=length(workers)
692
+
nworkers=min(jobs, length(tests))
693
+
workers=fill(nothing, nworkers)
694
694
695
695
t0 =time()
696
696
results = []
697
-
running_tests =Dict{String, Tuple{Int, Float64}}() # test => (worker, start_time)
697
+
running_tests =Dict{String, Float64}() # test => start_time
698
698
test_lock =ReentrantLock() # to protect crucial access to tests and running_tests
699
699
700
700
done =false
@@ -755,9 +755,9 @@ function runtests(mod::Module, args::ParsedArgs;
755
755
line1 =""
756
756
757
757
# line 2: running tests
758
-
test_list =sort(collect(running_tests), by = x ->x[2][2])
759
-
status_parts =map(test_list) do(test, (wrkr, _))
760
-
"$test ($wrkr)"
758
+
test_list =sort(collect(keys(running_tests)), by = x ->running_tests[x])
759
+
status_parts =map(test_list) do test
760
+
"$test"
761
761
end
762
762
line2 ="Running: "*join(status_parts, ", ")
763
763
## truncate
@@ -777,7 +777,7 @@ function runtests(mod::Module, args::ParsedArgs;
0 commit comments