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: v14.1.0~1015^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24812%2Fhead;p=ceph.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 11937238028e..81545852cf51 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."