Whamcloud - gitweb
tests: delete temporary resize test files
authorAndreas Dilger <adilger@dilger.ca>
Mon, 23 Dec 2013 21:01:51 +0000 (16:01 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 23 Dec 2013 21:01:56 +0000 (16:01 -0500)
Since commit 5ad07acad if $TMP cannot hold large test filesystems
for resize testing the resize_test creates temporary test files
in the local working directory.  Since it overrides TMPFILE locally
the calling program does not delete the generated file correctly.

Delete the large $TMPFILE within resize_test if it passes, but leave
it for debugging if the test failed.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
tests/scripts/resize_test

index 30532a5..6a8b0e9 100755 (executable)
@@ -149,6 +149,7 @@ then
        return 1
 fi
 
+rm $TMPFILE
 return 0
 
 }