From: adilger Date: Fri, 23 Jan 2004 01:52:40 +0000 (+0000) Subject: Always remove test files after test completes to avoid ENOSPC for other tests. X-Git-Tag: v1_7_0_51~2^7~112 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=eded5f41b2c7f52ad08f252d0bfa27633075de08;p=fs%2Flustre-release.git Always remove test files after test completes to avoid ENOSPC for other tests. Allow slightly more space to be left in case of uneven OST usage. b=974 --- diff --git a/lustre/tests/oos2.sh b/lustre/tests/oos2.sh index 1b102ec..9bfb134 100644 --- a/lustre/tests/oos2.sh +++ b/lustre/tests/oos2.sh @@ -76,9 +76,10 @@ if [ $RECORDSOUT -ne $(($FILESIZE / 1024)) ]; then SUCCESS=0 fi +rm -f $OOS $LOG + if [ $SUCCESS -eq 1 ]; then echo "Success!" - - rm -f $OOS - rm -f $LOG +else + exit 1 fi