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: v12.2.11~146^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85673b2318ea4267fcaec659280ae926b51fd394;p=ceph.git test: make readable.sh fail if it doesn't run anything Signed-off-by: Greg Farnum (cherry picked from commit 66239633880952bc29a64f15a42b3cd20e856957) --- diff --git a/src/test/encoding/readable.sh b/src/test/encoding/readable.sh index 5f546918788..c0ee9d721fe 100755 --- a/src/test/encoding/readable.sh +++ b/src/test/encoding/readable.sh @@ -232,5 +232,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."