xfs
[Top] [All Lists]

[PATCH 03/12] 079: use TEST_DIR instead of a SCRATCH_DEV

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

diff --git a/tests/generic/079 b/tests/generic/079
index a533484..044447a 100755
--- a/tests/generic/079
+++ b/tests/generic/079
@@ -36,8 +36,7 @@ _cleanup()
 {
     cd /
     echo "*** cleaning up"
-    $timmutable -r $SCRATCH_MNT/$seq
-    umount $SCRATCH_MNT
+    $timmutable -r $TEST_DIR/$seq
 }
 
 # get standard environment, filters and checks
@@ -49,16 +48,11 @@ _supported_fs generic
 _supported_os Linux
 
 _require_attrs
-_require_scratch
 
 [ -x $timmutable ] || _notrun "t_immutable was not built for this platform"
 
-# real QA test starts here
-_scratch_mkfs >/dev/null 2>&1 || _fail "mkfs failed"
-_scratch_mount || _fail "mount failed"
-
 echo "*** starting up"
-$timmutable -c $SCRATCH_MNT/$seq >$tmp.out 2>&1
+$timmutable -c $TEST_DIR/$seq >$tmp.out 2>&1
 if grep -q 'Operation not supported' $tmp.out; then
     rm -f $tmp.out
     _notrun "Setting immutable/append flag not supported"
-- 
1.7.10.4


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