]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: make readable.sh fail if it doesn't run anything 25050/head
authorGreg Farnum <gfarnum@redhat.com>
Mon, 29 Oct 2018 18:15:46 +0000 (11:15 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Mon, 12 Nov 2018 07:18:19 +0000 (23:18 -0800)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 66239633880952bc29a64f15a42b3cd20e856957)

src/test/encoding/readable.sh

index 11937238028e55fef1d8bdb13d6286ec09bdd850..81545852cf515a9a31f360d970914d58340288ce 100755 (executable)
@@ -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."