Skip to content

Using success function instead of run. #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions test/mpi/mpiexec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ function run_mpi_driver(;procs,file)
repodir = joinpath(testdir,"..")
mpiexec() do cmd
if MPI.MPI_LIBRARY == MPI.OpenMPI
run(`$cmd -n $procs --oversubscribe $(Base.julia_cmd()) --project=$repodir $(joinpath(mpidir,file))`)
@test success(`$cmd -n $procs --oversubscribe $(Base.julia_cmd()) --project=$repodir $(joinpath(mpidir,file))`)
else
run(`$cmd -n $procs $(Base.julia_cmd()) --project=$repodir $(joinpath(mpidir,file))`)
@test success(`$cmd -n $procs $(Base.julia_cmd()) --project=$repodir $(joinpath(mpidir,file))`)
end
# This line will be reached if and only if the command launched by `run` runs without errors.
# Then, if we arrive here, the test has succeeded.
@test true
end
end