Whamcloud - gitweb
b=12499
authorgrev <grev>
Wed, 8 Aug 2007 21:24:03 +0000 (21:24 +0000)
committergrev <grev>
Wed, 8 Aug 2007 21:24:03 +0000 (21:24 +0000)
i=Adilger
i=Shadow

replay-dual, replay-single, sanityN cleanup (patchless unrelated)

lustre/tests/replay-dual.sh
lustre/tests/replay-single.sh
lustre/tests/sanityN.sh

index 35a3c24..5afb915 100755 (executable)
@@ -429,7 +429,7 @@ test_18() { # bug 3822 - evicting client with enqueued lock
 #define OBD_FAIL_LDLM_BL_CALLBACK        0x305
     do_facet client sysctl -w lustre.fail_loc=0x80000305  # drop cb, evict
     cancel_lru_locks mdc
-    usleep 500 # wait to ensure first client is one that will be evicted
+    sleep 0.500s # wait to ensure first client is one that will be evicted
     openfile -f O_RDONLY $MOUNT2/$tdir/f0
     wait $OPENPID
     dmesg | grep "entering recovery in server" && \
index d205d1d..a20b50a 100755 (executable)
@@ -462,7 +462,7 @@ test_20b() { # bug 10480
     dd if=/dev/zero of=$DIR/$tfile bs=4k count=10000 &
     pid=$!
     while [ ! -e $DIR/$tfile ] ; do
-        usleep 60                           # give dd a chance to start
+        sleep 0.060s                           # give dd a chance to start
     done
 
     lfs getstripe $DIR/$tfile || return 1
@@ -888,6 +888,10 @@ run_test 40 "cause recovery in ptlrpc, ensure IO continues"
 # the page, guarnateeing that the unlock from the RPC completion would
 # assert on trying to unlock the unlocked page.
 test_41() {
+    [ $OSTCOUNT -lt 2 ] && \
+       echo "skipping test 41: we don't have a second OST to test with" && \
+       return
+
     local f=$MOUNT/$tfile
     # make sure the start of the file is ost1
     lfs setstripe $f $((128 * 1024)) 0 0 
index 0e1a9bc..e268ce2 100644 (file)
@@ -411,7 +411,7 @@ test_11() {
        mkdir $DIR1/d11
        multiop $DIR1/d11/f O_c &
        MULTIPID=$!
-       usleep 200
+       sleep 0.200s
        cp -p /bin/ls $DIR1/d11/f
        $DIR2/d11/f
        RC=$?
@@ -713,7 +713,7 @@ test_27() {
        lctl clear
        dd if=/dev/zero of=$DIR2/$tfile bs=$((4096+4))k conv=notrunc count=4 seek=3 &
        DD2_PID=$!
-       usleep 50
+       sleep 0.050s
        log "dd 1 started"
        
        dd if=/dev/zero of=$DIR1/$tfile bs=$((16384-1024))k conv=notrunc count=1 seek=4 &
@@ -771,7 +771,7 @@ test_29() { # bug 10999
        #define OBD_FAIL_LDLM_GLIMPSE  0x30f
        sysctl -w lustre.fail_loc=0x8000030f
        ls -l $DIR2/$tfile &
-       usleep 500
+       sleep 0.500s
        dd if=/dev/zero of=$DIR1/$tfile bs=4k count=1
        wait
 }