]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
run test on scratch dir
authorDavid Disseldorp <ddiss@sgi.com>
Mon, 16 Oct 2006 15:46:05 +0000 (15:46 +0000)
committerDavid Disseldorp <ddiss@sgi.com>
Mon, 16 Oct 2006 15:46:05 +0000 (15:46 +0000)
remove failure case for when scratch is not mounted before test
Merge of master-melb:xfs-cmds:27201a by kenmcd.

135

diff --git a/135 b/135
index d584dc67b0517435e975686e8f4fc9214d40ff0d..c8f738477f4d31f81935d6490ab7739fbc8721b7 100755 (executable)
--- a/135
+++ b/135
@@ -32,16 +32,25 @@ _supported_fs xfs
 _supported_os Linux IRIX
 
 _setup_testdir
+_require_scratch
+_scratch_mkfs_xfs >/dev/null 2>&1
 
 _umount_mount()
 {
     CWD=`pwd`
     cd /
-    umount $SCRATCH_MNT
+    # pipe error into /dev/null, in case not mounted (after _require_scratch)
+    umount $SCRATCH_MNT 2>/dev/null
     _scratch_mount
     cd "$CWD"
 }
 
+
+
+_umount_mount
+
+cd $SCRATCH_MNT
+
 # create file with async I/O
 xfs_io -f -c 'pwrite -b 4k -S 0x12 0 4k' async_file > /dev/null