]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fix test to detect a test setup failure 23518/head
authorDavid Zafman <dzafman@redhat.com>
Tue, 14 Aug 2018 22:59:29 +0000 (15:59 -0700)
committerDavid Zafman <dzafman@redhat.com>
Wed, 15 Aug 2018 22:45:44 +0000 (15:45 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
qa/standalone/osd/osd-backfill-stats.sh

index d57305f4e5b117e3a00ab40e1c87701695b514cd..7999028412388b4c42e321985f12c1102ec5ecdc 100755 (executable)
@@ -73,6 +73,11 @@ function check() {
 
     local log=$(grep -l +backfilling $dir/osd.*.log)
     test -n "$log" || return 1
+    if [ "$(echo "$log" | wc -w)" != "1" ];
+    then
+      echo "Test setup failure, a single OSD should have performed backfill"
+      return 1
+    fi
 
     local addp=" "
     if [ "$type" = "erasure" ];