Skip to content

Commit

Permalink
test: make readable.sh fail if it doesn't run anything
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
  • Loading branch information
gregsfortytwo committed Oct 29, 2018
1 parent e828c56 commit 6623963
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/encoding/readable.sh
Expand Up @@ -231,5 +231,11 @@ if [ $failed -gt 0 ]; then
echo "FAILED $failed / $numtests tests."
exit 1
fi

if [ $numtests -eq 0 ]; then
echo "FAILED: no tests found to run!"
exit 1
fi

echo "passed $numtests tests."

0 comments on commit 6623963

Please sign in to comment.