diff --git a/test/setup.jl b/test/setup.jl index 611d048c..421ef6dc 100644 --- a/test/setup.jl +++ b/test/setup.jl @@ -10,15 +10,15 @@ if !Sys.isapple() Sys.exit() else # if Sys.isapple() archchecker = occursin(read(`xcrun metal-arch`, String)) - @info "testing the continue works to exit if statements like with for loops" if archchecker("Paravirtual") # Virtualized graphics (probably Github Actions runners) @info """Metal.jl succesfully loaded on macOS system with unsupported Paravirtual graphics. Skipping tests.""" + Sys.exit() elseif !archchecker("applegpu") # Every other unsupported system (Intel or AMD graphics) @info """Metal.jl succesfully loaded on macOS system with unsupported graphics. - Skipping tests.""" + (not) Skipping tests.""" + # Sys.exit() end - Sys.exit() end Metal.functional() || error("Metal.jl is not functional on this system")