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
+26-21Lines changed: 26 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -932,15 +932,15 @@ function runtests(mod::Module, args::ParsedArgs;
932
932
filter_tests!(testsuite, args)
933
933
934
934
# determine test order
935
-
tests =Lockable(collect(keys(testsuite)))
936
-
@lock tests Random.shuffle!(tests[])
935
+
tests =collect(keys(testsuite))
936
+
Random.shuffle!(tests)
937
937
historical_durations =load_test_history(mod)
938
-
@lock tests sort!(tests[], by = x ->-get(historical_durations, x, Inf))
938
+
sort!(tests, by = x ->-get(historical_durations, x, Inf))
939
939
940
940
# determine parallelism
941
941
jobs =something(args.jobs, default_njobs())
942
-
jobs =@lock tests clamp(jobs, 1, length(tests[]))
943
-
@lock tests println(stdout, "Running $(length(tests[])) tests using $jobs parallel jobs. If this is too many concurrent jobs, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.")
942
+
jobs =clamp(jobs, 1, length(tests))
943
+
println(stdout, "Running $(length(tests)) tests using $jobs parallel jobs. If this is too many concurrent jobs, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.")
0 commit comments