]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: fix osd-scrub-snaps.sh 6697/head
authorXinze Chi <xinze@xsky.com>
Wed, 25 Nov 2015 12:19:54 +0000 (20:19 +0800)
committerXinze Chi <xinze@xsky.com>
Tue, 1 Dec 2015 03:10:10 +0000 (11:10 +0800)
when we run run-make-check.sh in hdd disk, it would spend much more
time to finish scrub.

Signed-off-by: Xinze Chi <xinze@xsky.com>
src/test/osd/osd-scrub-snaps.sh

index 9819c043834d17cbd3f57dc2918aba101ee67ac2..954acfddbb73ed2d86f90fa44f6f8786f71d53c4 100755 (executable)
@@ -150,17 +150,15 @@ function TEST_scrub_snaps() {
     run_osd $dir 0 || return 1
     wait_for_clean || return 1
 
-    sleep 5
-    ceph pg scrub ${poolid}.0
-    timeout 30 ceph -w
+    local pgid="${poolid}.0"
+    pg_scrub "$pgid" || return 1
+    grep 'log_channel' $dir/osd.0.log
 
     for i in `seq 1 7`
     do
         rados -p $poolname rmsnap snap$i
     done
 
-    sleep 10
-
     ERRORS=0
 
     pidfile=$(find $dir 2>/dev/null | grep $name_prefix'[^/]*\.pid')