Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tests/test-debug-flags.sh: Log the error from nbdkit unconditionally.
Useful to print the error displayed by nbdkit in all cases, not
just when the test fails.

Also fix the error message if the test does fail (unexpected -> expected).
  • Loading branch information
rwmjones committed Dec 12, 2019
1 parent 208ed8a commit f5a1ff7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test-debug-flags.sh
Expand Up @@ -49,10 +49,9 @@ expected_failure ()

check_error ()
{
cat debug-flags.out
if ! grep -sq "$1" debug-flags.out; then
echo "unexpected error message containing: $1"
echo "actual output:"
cat debug-flags.out
echo "$0: expected error message not present in above output: '$1'"
exit 1
fi
}
Expand Down

0 comments on commit f5a1ff7

Please sign in to comment.