]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: make readable.sh fail if it doesn't run anything 25049/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:17:56 +0000 (23:17 -0800)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 66239633880952bc29a64f15a42b3cd20e856957)

src/test/encoding/readable.sh

index 5f546918788c1e04ad3b9f052b734b00b3bce053..c0ee9d721fe4775f166dd7e01967bd0bea744990 100755 (executable)
@@ -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."