Whamcloud - gitweb
Always remove test files after test completes to avoid ENOSPC for other tests.
authoradilger <adilger>
Fri, 23 Jan 2004 01:52:40 +0000 (01:52 +0000)
committeradilger <adilger>
Fri, 23 Jan 2004 01:52:40 +0000 (01:52 +0000)
Allow slightly more space to be left in case of uneven OST usage.
b=974

lustre/tests/oos2.sh

index 1b102ec..9bfb134 100644 (file)
@@ -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