From: David Zafman Date: Tue, 14 Aug 2018 22:59:29 +0000 (-0700) Subject: test: Fix test to detect a test setup failure X-Git-Tag: v14.0.1~510^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c1b2bd7f16fe4ffb63baa48e8a154f275bd20126;p=ceph.git test: Fix test to detect a test setup failure Signed-off-by: David Zafman --- diff --git a/qa/standalone/osd/osd-backfill-stats.sh b/qa/standalone/osd/osd-backfill-stats.sh index d57305f4e5b1..799902841238 100755 --- a/qa/standalone/osd/osd-backfill-stats.sh +++ b/qa/standalone/osd/osd-backfill-stats.sh @@ -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" ];