Skip to content

Commit

Permalink
Don't care about exact exit code
Browse files Browse the repository at this point in the history
Ubuntu reports 11 while other platforms only give 1
  • Loading branch information
martin-schulze-vireso committed Jan 31, 2023
1 parent 802d79d commit 5d62e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/bats.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ HEREDOC
chmod a+x "$REPORT_FORMATTER"

bats_require_minimum_version 1.5.0
reentrant_run -1 bats "$FIXTURE_ROOT/passing.bats" --report-formatter "$REPORT_FORMATTER" --output "$BATS_TEST_TMPDIR"
reentrant_run ! bats "$FIXTURE_ROOT/passing.bats" --report-formatter "$REPORT_FORMATTER" --output "$BATS_TEST_TMPDIR"

[ "${lines[0]}" = "ERROR: command \`$REPORT_FORMATTER\` failed with status 11" ]
}

0 comments on commit 5d62e18

Please sign in to comment.