Skip to content

Commit 99f4a07

Browse files
committed
fix(test): make TAP exit-code assertion strict-mode safe
1 parent a03a938 commit 99f4a07

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/acceptance/bashunit_tap_output_test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ function test_tap_output_env_var_equivalent_to_flag() {
3131
function test_tap_output_exits_non_zero_on_failure() {
3232
local test_file=tests/acceptance/fixtures/test_bashunit_when_a_test_fail.sh
3333

34-
./bashunit --no-parallel --env "$TEST_ENV_FILE" --output tap "$test_file" >/dev/null 2>&1
35-
assert_general_error "$?"
34+
assert_general_error "$(./bashunit --no-parallel --env "$TEST_ENV_FILE" --output tap "$test_file" 2>&1)"
3635
}

0 commit comments

Comments
 (0)