Skip to content

Commit

Permalink
move threads assignment after precompilation (JuliaLang#3840)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth authored Mar 12, 2024
1 parent 28bbbd4 commit 4d73d60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,6 @@ function gen_subprocess_flags(source_path::String; coverage, julia_args)
--inline=$(Bool(Base.JLOptions().can_inline) ? "yes" : "no")
--startup-file=$(Base.JLOptions().startupfile == 1 ? "yes" : "no")
--track-allocation=$(("none", "user", "all")[Base.JLOptions().malloc_log + 1])
--threads=$(get_threads_spec())
$(julia_args)
```
end
Expand Down Expand Up @@ -2054,7 +2053,7 @@ function test(ctx::Context, pkgs::Vector{PackageSpec};
printpkgstyle(ctx.io, :Testing, "Running tests...")
flush(ctx.io)
code = gen_test_code(source_path; test_args)
cmd = `$(Base.julia_cmd()) $(flags) --eval $code`
cmd = `$(Base.julia_cmd()) $(flags) --threads=$(get_threads_spec()) --eval $code`
p, interrupted = subprocess_handler(cmd, ctx, sandbox_ctx, "Tests interrupted. Exiting the test process")
if success(p)
printpkgstyle(ctx.io, :Testing, pkg.name * " tests passed ")
Expand Down

0 comments on commit 4d73d60

Please sign in to comment.