Commit 4672fb7
committed
test(runner): fix strict-mode capture in stop-on-failure runtime error test
Under `--strict` (`set -euo pipefail`), `output=$(./bashunit …)` would
abort the test body on the inner non-zero exit. Capture the exit code
via `|| exit_code=$?` and compare with `assert_same`, since
`assert_general_error` reads `$?` (or arg3), not arg1.1 parent 98b3a67 commit 4672fb7
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
0 commit comments