]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/standalone/scrub/osd-scrub-repair.sh
import 15.2.2 octopus source
[ceph.git] / ceph / qa / standalone / scrub / osd-scrub-repair.sh
index 12981dd8fae7245a1a6226554b11ff3c2215f26a..d5a5ee332d7d5c7aee956c5529de01385c5db266 100755 (executable)
@@ -494,8 +494,9 @@ function TEST_auto_repair_bluestore_failed() {
     repair $pgid
     sleep 2
 
+    flush_pg_stats
     ceph pg dump pgs
-    ceph pg dump pgs | grep -q "^$(pgid).* active+clean " || return 1
+    ceph pg dump pgs | grep -q -e "^${pgid}.* active+clean " -e "^${pgid}.* active+clean+wait " || return 1
     grep scrub_finish $dir/osd.${primary}.log
 
     # Tear down