Skip to content

Commit db64a5d

Browse files
committed
fix depot filter for avoiding relocation
1 parent a60f342 commit db64a5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/relocatedepot.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ if !test_relocated_depot
132132
test_harness(empty_depot_path=false) do
133133
push!(LOAD_PATH, @__DIR__)
134134
# skip this dir to make the pkgimage not relocatable
135-
filter!(!=(@__DIR__), DEPOT_PATH)
135+
filter!(DEPOT_PATH) do depot
136+
!startswith(@__DIR__, depot)
137+
end
136138
pkg = Base.identify_package(pkgname)
137139
cachefiles = Base.find_all_in_cache_path(pkg)
138140
rm.(cachefiles, force=true)

0 commit comments

Comments
 (0)