diff --git a/test/relocatedepot.jl b/test/relocatedepot.jl index 1cc1ab5dc3e8d..3b7994d85d600 100644 --- a/test/relocatedepot.jl +++ b/test/relocatedepot.jl @@ -132,7 +132,9 @@ if !test_relocated_depot test_harness(empty_depot_path=false) do push!(LOAD_PATH, @__DIR__) # skip this dir to make the pkgimage not relocatable - filter!(!=(@__DIR__), DEPOT_PATH) + filter!(DEPOT_PATH) do depot + !startswith(@__DIR__, depot) + end @show LOAD_PATH @show DEPOT_PATH pkg = Base.identify_package(pkgname)