]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/osd/osd-dup.sh: use wait_for_clean 15722/head
authorDan Mick <dan.mick@redhat.com>
Fri, 16 Jun 2017 06:12:14 +0000 (23:12 -0700)
committerDan Mick <dan.mick@redhat.com>
Fri, 16 Jun 2017 06:14:48 +0000 (23:14 -0700)
Rather than a onetime 'ceph -s' test, which might be too early
on a loaded machine, use wait_for_clean; that's its job

Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/test/osd/osd-dup.sh

index bf48a39ea52772c6386af0ba315d64b5c4272297..f497005d168a72525313b03b320dbecbee8e084f 100755 (executable)
@@ -72,7 +72,7 @@ function TEST_filestore_to_bluestore() {
     # and make sure mon is sync'ed
     flush_pg_stats
 
-    ceph -s | grep '20 active+clean' || return 1
+    wait_for_clean || return 1
 }
 
 main osd-dup "$@"