Skip to content

Commit

Permalink
Squash error output from processes we expect to error
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jun 22, 2022
1 parent a12a0e7 commit c54bc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cmdlineargs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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(pipeline(ignorestatus(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)
Expand Down

0 comments on commit c54bc7f

Please sign in to comment.