require_dsh_ost || exit 0
-if [ "$FAILURE_MODE" = "HARD" ] && mixed_ost_devs; then
- skip_env "$0: Several ost services on one ost node are used with FAILURE_MODE=$FAILURE_MODE. "
- exit 0
-fi
-
# Tests that fail on uml
CPU=`awk '/model/ {print $4}' /proc/cpuinfo`
[ "$CPU" = "UML" ] && EXCEPT="$EXCEPT 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
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
}
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