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: v13.2.5~43^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cf61e54c69c945ce4297e822494aef7eb78503a6;p=ceph.git test: Fix test to detect a test setup failure Signed-off-by: David Zafman (cherry picked from commit c1b2bd7f16fe4ffb63baa48e8a154f275bd20126) --- diff --git a/qa/standalone/osd/osd-backfill-stats.sh b/qa/standalone/osd/osd-backfill-stats.sh index 0f32cdc0776..6ff3c9d86b6 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.$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" ];