]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 30532a517e2c7d1957bae81464ca162e0b0522a7..6a8b0e9707dd3d556616479c8e84426340ac5d4e 100755 (executable)
@@ -149,6 +149,7 @@ then
        return 1
 fi
 
+rm $TMPFILE
 return 0
 
 }