From 1a2364375c2a4516a56a2563d747596ec91562f9 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Sun, 2 Feb 2025 22:05:29 -0500 Subject: [PATCH] Simplify the tests --- test/runtests.jl | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index ab0944f..bc46962 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -13,23 +13,12 @@ using Test: @testset, @test, @test_skip # LSF: using LSFClusterManager: addprocs_lsf, LSFManager -const test_args = lowercase.(strip.(ARGS)) - -@info "" test_args - lsf_is_installed() = !isnothing(Sys.which("bsub")) @testset "LSFClusterManager.jl" begin - if lsf_is_installed() - @info "Running the LSF tests..." Sys.which("bsub") - include("lsf.jl") - else - if "lsf" in test_args - @error "ERROR: The LSF tests were explicitly requested in ARGS, but bsub was not found, so the LSF tests cannot be run" Sys.which("bsub") test_args - @test false - else - @warn "bsub was not found - LSF tests will be skipped" Sys.which("bsub") - @test_skip false - end - end -end # @testset + @info "" Sys.which("bsub") + + @test lsf_is_installed() + + include("lsf.jl") +end