xfs
[Top] [All Lists]

[PATCH xfstests] 243: remove test files before starting

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH xfstests] 243: remove test files before starting
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Tue, 11 Jan 2011 09:38:15 -0600
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
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@xxxxxxxxxxx>
---

diff --git a/243 b/243
index 8b2e647..48f7932 100755
--- 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

<Prev in Thread] Current Thread [Next in Thread>