Skip to content

Commit f769fdf

Browse files
authored
fix depot filter for avoiding relocation
1 parent a9f3f3f commit f769fdf

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
@show LOAD_PATH
137139
@show DEPOT_PATH
138140
pkg = Base.identify_package(pkgname)

0 commit comments

Comments
 (0)