Skip to content

Commit 74d6f07

Browse files
DilumAluthgeKristofferC
authored andcommitted
Base.runtests: set a temporary Pkg depot path (#42358)
(cherry picked from commit 2c9e051)
1 parent b4cbb96 commit 74d6f07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/util.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,7 @@ function runtests(tests = ["all"]; ncores::Int = ceil(Int, Sys.CPU_THREADS::Int
573573
ENV2["JULIA_CPU_THREADS"] = "$ncores"
574574
delete!(ENV2, "JULIA_LOAD_PATH")
575575
delete!(ENV2, "JULIA_PROJECT")
576+
ENV2["JULIA_DEPOT_PATH"] = mktempdir(; cleanup = true)
576577
try
577578
run(setenv(`$(julia_cmd()) $(joinpath(Sys.BINDIR::String,
578579
Base.DATAROOTDIR, "julia", "test", "runtests.jl")) $tests`, ENV2))

0 commit comments

Comments
 (0)