Skip to content

Commit bad7327

Browse files
authored
Actually attach addworkers doscstring to addworkers (#10)
1 parent b09d96a commit bad7327

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ParallelTestRunner.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,6 @@ function default_njobs(; cpu_threads = Sys.CPU_THREADS, free_memory = Sys.free_m
213213
return max(1, min(jobs, memory_jobs))
214214
end
215215

216-
"""
217-
addworkers(X; kwargs...)
218-
219-
Add `X` worker processes, with additional keyword arguments passed to `addprocs`.
220-
"""
221216
test_exeflags = Base.julia_cmd()
222217
filter!(test_exeflags.exec) do c
223218
return !(startswith(c, "--depwarn") || startswith(c, "--check-bounds"))
@@ -227,6 +222,11 @@ push!(test_exeflags.exec, "--startup-file=no")
227222
push!(test_exeflags.exec, "--depwarn=yes")
228223
push!(test_exeflags.exec, "--project=$(Base.active_project())")
229224
test_exename = popfirst!(test_exeflags.exec)
225+
"""
226+
addworkers(X; kwargs...)
227+
228+
Add `X` worker processes, with additional keyword arguments passed to `Distributed.addprocs`.
229+
"""
230230
function addworkers(X; kwargs...)
231231
exename = test_exename
232232

0 commit comments

Comments
 (0)