diff --git a/src/Operations.jl b/src/Operations.jl index c2ac100e5b..259a86c97e 100644 --- a/src/Operations.jl +++ b/src/Operations.jl @@ -2060,7 +2060,8 @@ function test(ctx::Context, pkgs::Vector{PackageSpec}; test_fn !== nothing && test_fn() sandbox_ctx = Context(;io=ctx.io) status(sandbox_ctx.env, sandbox_ctx.registries; mode=PKGMODE_COMBINED, io=sandbox_ctx.io, ignore_indent = false, show_usagetips = false) - flags = gen_subprocess_flags(source_path; coverage,julia_args) + precompile_julia_args = Cmd(filter(!startswith("--threads"), julia_args.exec)) # precompilation with threads is not supported + flags = gen_subprocess_flags(source_path; coverage, julia_args = precompile_julia_args) if should_autoprecompile() cacheflags = Base.CacheFlags(parse(UInt8, read(`$(Base.julia_cmd()) $(flags) --eval 'show(ccall(:jl_cache_flags, UInt8, ()))'`, String)))