Commit 1ec07ec
committed
fix(test): make test_cargo_audit not ignore return code outside A/B
The pipe through grep was causing any return code of cargo audit to be
overwritten with that of grep (which is always 0). Fix this by using `-o
pipefail`, which changes the return code of a bash pipe to instead be
that of the rightmost failing command (or 0 if none fail). Note that
just -o pipefail will not abort the pipe on a non-zero code (so the grep
will still run even if cargo audit fails).
Suggested-by: Riccardo Mancini <[email protected]>
Signed-off-by: Patrick Roy <[email protected]>1 parent 2392fe9 commit 1ec07ec
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
0 commit comments