From 8aa99fedb672bcf7de570694360829e937ed9586 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Wed, 22 Jun 2022 19:33:44 +0000 Subject: [PATCH] Squash error output from processes we expect to error --- test/cmdlineargs.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cmdlineargs.jl b/test/cmdlineargs.jl index 9bdf5b83a0d2eb..18b83a75c0f352 100644 --- a/test/cmdlineargs.jl +++ b/test/cmdlineargs.jl @@ -33,7 +33,7 @@ end # Returns true if the given command errors, but doesn't signal function errors_not_signals(cmd::Cmd) - p = run(ignorestatus(cmd)) + p = run(ignorestatus(pipeline(cmd; stdout=devnull, stderr=devnull))) return errors_not_signals(p) end errors_not_signals(p::Base.Process) = process_exited(p) && !Base.process_signaled(p) && !success(p)