Skip to content

Commit cfdfc89

Browse files
wrap distributed_exec subprocess tests in a testset, with cmd as context
1 parent 9047422 commit cfdfc89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# This file is a part of Julia. License is MIT: https://julialang.org/license
22

3+
using Test
4+
35
# Run the distributed test outside of the main driver since it needs its own
46
# set of dedicated workers.
57
include(joinpath(Sys.BINDIR, "..", "share", "julia", "test", "testenv.jl"))
68
disttestfile = joinpath(@__DIR__, "distributed_exec.jl")
79

8-
cmd = `$test_exename $test_exeflags $disttestfile`
9-
10-
if !success(pipeline(cmd; stdout=stdout, stderr=stderr)) && ccall(:jl_running_on_valgrind,Cint,()) == 0
11-
error("Distributed test failed, cmd : $cmd")
10+
@testset let cmd = `$test_exename $test_exeflags $disttestfile`
11+
@test success(pipeline(cmd; stdout=stdout, stderr=stderr)) && ccall(:jl_running_on_valgrind,Cint,()) == 0
1212
end
1313

1414
include("managers.jl")

0 commit comments

Comments
 (0)