243: remove test files before starting
authorEric Sandeen <sandeen@sandeen.net>
Tue, 11 Jan 2011 15:38:15 +0000 (15:38 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 11 Jan 2011 22:44:56 +0000 (16:44 -0600)
I found that overwriting existing files hides a bug
in ext4 (since fixed).  Removing the files before
the test reliably reproduces it.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
243

diff --git a/243 b/243
index 8b2e647d6c21c71318db80b42aa78c0eff7146c8..48f79327e6aa1a31ad8f580c7cbb60d2daee4283 100755 (executable)
--- a/243
+++ b/243
@@ -125,6 +125,9 @@ _require_xfs_io_falloc
 # Real QA test starts here.
 rm -f $seq.full
 
+# Remove any leftover files from last run.
+rm -f ${TEST_DIR}/test_?
+
 # Begin test cases.
 echo "Test 1: Fallocate 40960 bytes and write 4096 bytes (buffered io)." \
     >> $seq.full