Skip to content

Commit f61eb87

Browse files
authored
Base.runtests: unset JULIA_PROJECT and JULIA_LOAD_PATH (#43575)
1 parent 722f9d4 commit f61eb87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base/util.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,8 @@ function runtests(tests = ["all"]; ncores::Int = ceil(Int, Sys.CPU_THREADS::Int
571571
ENV2 = copy(ENV)
572572
ENV2["JULIA_CPU_THREADS"] = "$ncores"
573573
ENV2["JULIA_DEPOT_PATH"] = mktempdir(; cleanup = true)
574+
delete!(ENV2, "JULIA_LOAD_PATH")
575+
delete!(ENV2, "JULIA_PROJECT")
574576
try
575577
run(setenv(`$(julia_cmd()) $(joinpath(Sys.BINDIR::String,
576578
Base.DATAROOTDIR, "julia", "test", "runtests.jl")) $tests`, ENV2))

0 commit comments

Comments
 (0)