From 66239633880952bc29a64f15a42b3cd20e856957 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Mon, 29 Oct 2018 11:15:46 -0700 Subject: [PATCH] test: make readable.sh fail if it doesn't run anything Signed-off-by: Greg Farnum --- src/test/encoding/readable.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/encoding/readable.sh b/src/test/encoding/readable.sh index 11937238028..81545852cf5 100755 --- a/src/test/encoding/readable.sh +++ b/src/test/encoding/readable.sh @@ -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." -- 2.39.5