xfs
[Top] [All Lists]

[PATCH 10/12] 141: use TEST_DIR instead of a SCRATCH_DEV

To: xfs@xxxxxxxxxxx
Subject: [PATCH 10/12] 141: use TEST_DIR instead of a SCRATCH_DEV
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 10 Dec 2013 23:34:55 -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/141 |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/tests/generic/141 b/tests/generic/141
index fa08484..3509c4a 100755
--- a/tests/generic/141
+++ b/tests/generic/141
@@ -39,16 +39,11 @@ trap "exit \$status" 0 1 2 3 15
 _supported_fs generic
 _supported_os Linux
 
-_require_scratch
-_scratch_mkfs >/dev/null 2>&1
-_scratch_mount
-
 # create file, mmap a region and mmap read it
-file=$SCRATCH_MNT/mmap
-
-$XFS_IO_PROG -f -c "pwrite 0 1024k" -c "mmap 64k 64k" -c "mread -r" $file > 
/dev/null
+file=$TEST_DIR/mmap.$seq
 
 rm -f $file
+$XFS_IO_PROG -f -c "pwrite 0 1024k" -c "mmap 64k 64k" -c "mread -r" $file > 
/dev/null
 
 status=0
 exit 
-- 
1.7.10.4


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