Skip to content

Commit

Permalink
Non-zero exit codes in test command execution are not fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Jun 2, 2021
1 parent a638a91 commit b32dd7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ for TESTFILE; do

# Run the test, filter the output and concatenate adjacent lines.
eval "$COMMAND" >/dev/null 2>&1 ||
{ cat test.log 1>&2 2>/dev/null; exit 1; }
printf ' Command terminated with exit code %d.\n' $?
sed -nr '/^\s*TEST INPUT BEGIN\s*$/,/^\s*TEST INPUT END\s*$/{
/^\s*TEST INPUT (BEGIN|END)\s*$/!H
/^\s*TEST INPUT END\s*$/{s/.*//;x;s/\n//g;p}
Expand Down

0 comments on commit b32dd7d

Please sign in to comment.