diff --git a/lustre/tests/replay-dual.sh b/lustre/tests/replay-dual.sh index 35a3c244211ce982250b31541af08ce54b8a87d4..5afb9151d3d41508dfebcde47a361f63eb4d5b49 100755 --- a/lustre/tests/replay-dual.sh +++ b/lustre/tests/replay-dual.sh @@ -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" && \ diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index d205d1d65bf5b880035cfb294351b8c0630ba93a..a20b50a061e999e2011cbab014bda3b8c1a4e980 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -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 diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 0e1a9bccda5116daeb47105b944c64264cae086d..e268ce21d488bcd29c5ef4c776a317248e393acf 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -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 }