Skip to content

Commit ed9eeeb

Browse files
authored
Skip Rust tests with unprivileged runners and unpacked shards (#396)
1 parent a79769d commit ed9eeeb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/runners.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,14 @@ end
536536
# Run the testsuite as sanity check
537537
@testset "testsuite" begin
538538
mktempdir() do dir
539-
ur = preferred_runner()(dir; platform=Platform("x86_64", "linux"; libc="glibc"), preferred_gcc_version=v"5", compilers=[:c, :rust, :go])
539+
# Skip Rust tests when they are broken. Ref:
540+
# https://github.com/JuliaPackaging/BinaryBuilderBase.jl/issues/395
541+
compilers = if !BinaryBuilderBase.use_squashfs[] && get(ENV, "BINARYBUILDER_RUNNER", "") == "unprivileged"
542+
[:c, :go]
543+
else
544+
[:c, :rust, :go]
545+
end
546+
ur = preferred_runner()(dir; platform=Platform("x86_64", "linux"; libc="glibc"), preferred_gcc_version=v"5", compilers)
540547
# Make sure the runner platform is concrete even if the requested platform isn't
541548
@test !isnothing(libgfortran_version(ur.platform))
542549
@test !isnothing(cxxstring_abi(ur.platform))

0 commit comments

Comments
 (0)