From a80a88b4fa69c438ce36f965e51803e1f50df3c5 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Tue, 4 Nov 2025 03:57:23 -0500 Subject: [PATCH] Fix tests when JULIA_DEPOT_PATH is set When JULIA_DEPOT_PATH is set, the stdlib depots might not be in DEPOT_PATH. However, because the test does not inherit the env var and instead sets it to something custom, the child processes will get the default. To make sure the tests work properly, just reach into base and query the right values. --- test/distributed_exec.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/distributed_exec.jl b/test/distributed_exec.jl index b7f7b63..fa1bd19 100644 --- a/test/distributed_exec.jl +++ b/test/distributed_exec.jl @@ -1856,7 +1856,8 @@ let julia = `$(Base.julia_cmd()) --startup-file=no`; mktempdir() do tmp project = mkdir(joinpath(tmp, "project")) depots = [mkdir(joinpath(tmp, "depot1")), mkdir(joinpath(tmp, "depot2"))] load_path = [mkdir(joinpath(tmp, "load_path")), "@stdlib", "@"] - shipped_depots = DEPOT_PATH[2:end] # stdlib caches + shipped_depots = String[] # stdlib caches + Base.append_bundled_depot_path!(shipped_depots) env = Dict( # needs a trailing pathsep to access the stdlib depot