Skip to content

Commit

Permalink
Update runtests.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Jan 2, 2025
1 parent 8d14187 commit f72afa3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import Distributed
using Distributed: rmprocs, remotecall_fetch
using Test: @testset, @test, @test_skip

const test_args = lowercase.(strip.(ARGS))

slurm_is_installed() = !isnothing(Sys.which("sbatch"))
lsf_is_installed() = !isnothing(Sys.which("bsub"))
qsub_is_installed() = !isnothing(Sys.which("qsub"))
Expand All @@ -17,8 +19,13 @@ if slurm_is_installed()
@info "Running the Slurm tests..." Sys.which("sbatch")
include("slurm.jl")
else
@warn "sbatch was not found - Slurm tests will be skipped" Sys.which("sbatch")
@test_skip false
if "slurm" in test_args
@error ""
@test false
else
@warn "sbatch was not found - Slurm tests will be skipped" Sys.which("sbatch")
@test_skip false
end
end

if lsf_is_installed()
Expand Down

0 comments on commit f72afa3

Please sign in to comment.