Skip to content

Commit

Permalink
Base.runtests: unset JULIA_PROJECT and JULIA_LOAD_PATH (#43575)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Dec 28, 2021
1 parent 722f9d4 commit f61eb87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,8 @@ function runtests(tests = ["all"]; ncores::Int = ceil(Int, Sys.CPU_THREADS::Int
ENV2 = copy(ENV)
ENV2["JULIA_CPU_THREADS"] = "$ncores"
ENV2["JULIA_DEPOT_PATH"] = mktempdir(; cleanup = true)
delete!(ENV2, "JULIA_LOAD_PATH")
delete!(ENV2, "JULIA_PROJECT")
try
run(setenv(`$(julia_cmd()) $(joinpath(Sys.BINDIR::String,
Base.DATAROOTDIR, "julia", "test", "runtests.jl")) $tests`, ENV2))
Expand Down

0 comments on commit f61eb87

Please sign in to comment.