Skip to content

Commit

Permalink
Skip Rust tests with unprivileged runners and unpacked shards (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Dec 21, 2024
1 parent a79769d commit ed9eeeb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/runners.jl
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,14 @@ end
# Run the testsuite as sanity check
@testset "testsuite" begin
mktempdir() do dir
ur = preferred_runner()(dir; platform=Platform("x86_64", "linux"; libc="glibc"), preferred_gcc_version=v"5", compilers=[:c, :rust, :go])
# Skip Rust tests when they are broken. Ref:
# https://github.com/JuliaPackaging/BinaryBuilderBase.jl/issues/395
compilers = if !BinaryBuilderBase.use_squashfs[] && get(ENV, "BINARYBUILDER_RUNNER", "") == "unprivileged"
[:c, :go]
else
[:c, :rust, :go]
end
ur = preferred_runner()(dir; platform=Platform("x86_64", "linux"; libc="glibc"), preferred_gcc_version=v"5", compilers)
# Make sure the runner platform is concrete even if the requested platform isn't
@test !isnothing(libgfortran_version(ur.platform))
@test !isnothing(cxxstring_abi(ur.platform))
Expand Down

0 comments on commit ed9eeeb

Please sign in to comment.