Make osd-scrub-dump test ignore the 'scrubbing' that might be late to disappear
from the modified (PR #43403) 'pg dump' output.
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
for i in $(seq 0 300)
do
ceph pg dump pgs
- if ceph pg dump pgs | grep scrubbing; then
+ if ceph pg dump pgs | grep '+scrubbing'; then
ok=true
break
fi
# Check that there are no more scrubs
for i in $(seq 0 5)
do
- if ceph pg dump pgs | grep scrubbing; then
+ if ceph pg dump pgs | grep '+scrubbing'; then
echo "ERROR: Extra scrubs after test completion...not expected"
return 1
fi