X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Freplay-ost-single.sh;h=d81acbf90d544cf7325c294268de3667a460e625;hb=5093fef8392c866f1998d6e68b6536d10daabb4d;hp=8f2c799b3e4aa5781b3ea571112ad374a6d7011c;hpb=b8c0f5dfaf4024a9785530ca3a6967470c5f02de;p=fs%2Flustre-release.git diff --git a/lustre/tests/replay-ost-single.sh b/lustre/tests/replay-ost-single.sh index 8f2c799..d81acbf 100755 --- a/lustre/tests/replay-ost-single.sh +++ b/lustre/tests/replay-ost-single.sh @@ -177,6 +177,12 @@ test_6() { f=$TDIR/$tfile rm -f $f sync && sleep 2 && sync # wait for delete thread + + # wait till space is returned, following + # (( $before > $after_dd)) test counting on that + wait_mds_ost_sync || return 4 + wait_destroy_complete || return 5 + before=`kbytesfree` dd if=/dev/urandom bs=4096 count=1280 of=$f || return 28 lfs getstripe $f @@ -208,6 +214,12 @@ test_7() { f=$TDIR/$tfile rm -f $f sync && sleep 5 && sync # wait for delete thread + + # wait till space is returned, following + # (( $before > $after_dd)) test counting on that + wait_mds_ost_sync || return 4 + wait_destroy_complete || return 5 + before=`kbytesfree` dd if=/dev/urandom bs=4096 count=1280 of=$f || return 4 sync @@ -231,6 +243,6 @@ test_7() { } run_test 7 "Fail OST before obd_destroy" -equals_msg `basename $0`: test complete, cleaning up +complete $(basename $0) $SECONDS check_and_cleanup_lustre -[ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG && grep -q FAIL $TESTSUITELOG && exit 1 || true +exit_status