generic: more tests should clean up TESTDIR on success
[xfstests-dev.git] / tests / generic / 247
index c8648a2a5479ca11ace0a2131a8810d7e71d6a66..832ade164bbf230382656e0f0eed539bd6a5534c 100755 (executable)
@@ -48,7 +48,12 @@ _supported_fs generic
 _supported_os Linux
 _require_test
 
-testfile=$TEST_DIR/$seq.$$
+# this test leaves a 512MB file around if we abort the test during the run via a
+# reboot or kernel panic. Hence just name the file $seq so that we can always
+# clean up on the next run and not leave large stale files around on the testdir
+# that can lead to ENOSPC issues over time.
+testfile=$TEST_DIR/$seq
+rm -f $testfile
 
 loops=500
 iosize=1048576