Skip to content

Commit

Permalink
qa/standalone: fix scrub/osd-scrub-dump following changes to 'pg dump…
Browse files Browse the repository at this point in the history
… pgs' output

Make osd-scrub-dump test ignore the 'scrubbing' that might be late to disappear
from the modified (PR ceph#43403) 'pg dump' output.

Signed-off-by: Ronen Friedman <[email protected]>
  • Loading branch information
ronen-fr committed Nov 12, 2021
1 parent 3360595 commit 9dda986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qa/standalone/scrub/osd-scrub-dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function TEST_recover_unexpected() {
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
Expand Down Expand Up @@ -144,7 +144,7 @@ function TEST_recover_unexpected() {
# 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
Expand Down

0 comments on commit 9dda986

Please sign in to comment.