From: Greg Farnum Date: Mon, 29 Oct 2018 18:15:46 +0000 (-0700) Subject: test: make readable.sh fail if it doesn't run anything X-Git-Tag: 3.2-0~26^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=66239633880952bc29a64f15a42b3cd20e856957;p=ceph-ci.git test: make readable.sh fail if it doesn't run anything Signed-off-by: Greg Farnum --- 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."