]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fix test to detect a test setup failure
authorDavid Zafman <dzafman@redhat.com>
Tue, 14 Aug 2018 22:59:29 +0000 (15:59 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 7 Feb 2019 22:51:13 +0000 (14:51 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit c1b2bd7f16fe4ffb63baa48e8a154f275bd20126)

qa/standalone/osd/osd-backfill-stats.sh

index 0f32cdc0776b6d71cef42e97b40cc82b2c045cbb..6ff3c9d86b6a0793883b0fc5ec368c78895a6b46 100755 (executable)
@@ -73,6 +73,11 @@ function check() {
 
     local log=$(grep -l +backfilling $dir/osd.$primary.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" ];