xfs
[Top] [All Lists]

[PATCH 07/12] 124: use TEST_DIR instead of a SCRATCH_DEV

To: xfs@xxxxxxxxxxx
Subject: [PATCH 07/12] 124: use TEST_DIR instead of a SCRATCH_DEV
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 10 Dec 2013 23:34:52 -0800
Cc: Stanislav Kholmanskikh <stanislav.kholmanskikh@xxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
References: <20131211073445.353655850@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.60-1
The test does not require a fresh file system.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
 tests/generic/124 |   11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/tests/generic/124 b/tests/generic/124
index 93ec4a1..132f2bf 100755
--- a/tests/generic/124
+++ b/tests/generic/124
@@ -48,12 +48,10 @@ _cleanup()
 _supported_fs generic
 _supported_os Linux
 
-_require_scratch
-_scratch_mkfs >/dev/null 2>&1
-_scratch_mount
+rm -f $TEST_DIR/rw_pattern.$seq $TEST_DIR/rw_pattern.$seq
 
 # Run preallo_rw_pattern on both test and scratch partitions
-for TESTFILE in $TEST_DIR/rw_pattern.tmp $SCRATCH_MNT/rw_pattern.tmp
+for TESTFILE in $TEST_DIR/rw_pattern.$seq $TEST_DIR/rw_pattern.$seq
   do
   count=1
   while (( count < 101 ))
@@ -74,9 +72,4 @@ if (test $? -eq 0 ) then
     status=0
 fi
 
-umount $SCRATCH_DEV
-
-_check_test_fs
-_check_scratch_fs
-
 exit 
-- 
1.7.10.4


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