Skip to content

Commit c78756e

Browse files
committed
Fix test code: find Base source code more robustly
It seems that the path to base has changed in the Julia 1.9 nightly images installed by the julia-setup@v1 action. So search in that location for the Base source as well.
1 parent 21a7516 commit c78756e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/parse_packages.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@
66
test_parse_all_in_path(joinpath(pkgdir, "test"))
77
end
88

9-
base_path = joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "base")
9+
base_path = let
10+
p = joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "base")
11+
if !isdir(p)
12+
# For julia 1.9 images.
13+
p = joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia", "src", "base")
14+
if !isdir(p)
15+
error("source for Julia base not found")
16+
end
17+
end
18+
p
19+
end
1020
@testset "Parse Base at $base_path" begin
1121
test_parse_all_in_path(base_path)
1222
end

0 commit comments

Comments
 (0)