Skip to content

Commit

Permalink
Base.runtests: set a temporary Pkg depot path (#42358)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c9e051)
  • Loading branch information
DilumAluthge authored and KristofferC committed Mar 16, 2022
1 parent b4cbb96 commit 74d6f07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ function runtests(tests = ["all"]; ncores::Int = ceil(Int, Sys.CPU_THREADS::Int
ENV2["JULIA_CPU_THREADS"] = "$ncores"
delete!(ENV2, "JULIA_LOAD_PATH")
delete!(ENV2, "JULIA_PROJECT")
ENV2["JULIA_DEPOT_PATH"] = mktempdir(; cleanup = true)
try
run(setenv(`$(julia_cmd()) $(joinpath(Sys.BINDIR::String,
Base.DATAROOTDIR, "julia", "test", "runtests.jl")) $tests`, ENV2))
Expand Down

0 comments on commit 74d6f07

Please sign in to comment.