[PATCH] tests: delete temporary resize test files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 tests/scripts/resize_test |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/scripts/resize_test b/tests/scripts/resize_test
index 30532a5..6a8b0e9 100755
--- a/tests/scripts/resize_test
+++ b/tests/scripts/resize_test
@@ -149,6 +149,7 @@ then
 	return 1
 fi
 
+rm $TMPFILE
 return 0
 
 }
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux