From 18c10b326acc045b1e969bc862f455a2297ef8e1 Mon Sep 17 00:00:00 2001 From: Francesc Verdugo Date: Mon, 14 Feb 2022 10:30:46 +0100 Subject: [PATCH] Using success function instead of run. --- test/mpi/mpiexec.jl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/mpi/mpiexec.jl b/test/mpi/mpiexec.jl index b514690d..1f95d28b 100644 --- a/test/mpi/mpiexec.jl +++ b/test/mpi/mpiexec.jl @@ -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