]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: fix hardcoded path in output of 254
authorDavid Sterba <dsterba@suse.cz>
Fri, 3 Jun 2011 13:52:42 +0000 (13:52 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 17 Jun 2011 18:33:52 +0000 (13:33 -0500)
Add filters after btrfs commands, else the test would incorrectly
appear failed.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Alex Elder <aelder@sgi.com>
254
254.out

diff --git a/254 b/254
index 3c1a5a163ed31236334ed5b7c47522db683f41f9..63202916b9382aa6267d7f1dfb2522961c1661e5 100755 (executable)
--- a/254
+++ b/254
@@ -40,6 +40,7 @@ trap "_cleanup ; exit \$status" 0 1 2 3 15
 
 # get standard environment, filters and checks
 . ./common.rc
+. ./common.filter
 
 # real QA test starts here
 _supported_fs btrfs
@@ -55,7 +56,7 @@ dd if=/dev/zero of=$SCRATCH_MNT/foo bs=1M count=1 &> /dev/null
 echo "List root dir"
 ls $SCRATCH_MNT
 echo "Creating snapshot of root dir"
-btrfs subvolume snapshot $SCRATCH_MNT $SCRATCH_MNT/snap
+btrfs subvolume snapshot $SCRATCH_MNT $SCRATCH_MNT/snap | _filter_scratch
 echo "List root dir after snapshot"
 ls $SCRATCH_MNT
 echo "List snapshot dir"
@@ -67,7 +68,7 @@ echo "List snapshot dir"
 ls $SCRATCH_MNT/snap
 
 # Test creating a normal subvolme
-btrfs subvolume create $SCRATCH_MNT/subvol
+btrfs subvolume create $SCRATCH_MNT/subvol | _filter_scratch
 echo "Listing root dir"
 ls $SCRATCH_MNT
 echo "Listing subvol"
@@ -77,7 +78,7 @@ ls $SCRATCH_MNT/subvol
 echo "Creating file bar in subvol"
 dd if=/dev/zero of=$SCRATCH_MNT/subvol/bar bs=1M count=1 &> /dev/null
 echo "Setting subvol to the default"
-btrfs subvolume set-default $SCRATCH_MNT/subvol $SCRATCH_MNT/subvol
+btrfs subvolume set-default $SCRATCH_MNT/subvol $SCRATCH_MNT/subvol | _filter_scratch
 _scratch_remount
 echo "List root dir which is now subvol"
 ls $SCRATCH_MNT
@@ -87,17 +88,17 @@ _scratch_mount "-o subvolid=0"
 echo "List root dir"
 ls $SCRATCH_MNT
 echo "Setting the root dir as the default again"
-btrfs subvolume set-default $SCRATCH_MNT $SCRATCH_MNT
+btrfs subvolume set-default $SCRATCH_MNT $SCRATCH_MNT | _filter_scratch
 _scratch_remount
 echo "List root dir"
 ls $SCRATCH_MNT
 
 # Test listing the subvolumes
 echo "Listing subvolumes"
-btrfs subvolume list $SCRATCH_MNT
+btrfs subvolume list $SCRATCH_MNT | _filter_scratch
 
 # Delete the snapshot
-btrfs subvolume delete $SCRATCH_MNT/snap
+btrfs subvolume delete $SCRATCH_MNT/snap | _filter_scratch
 echo "List root dir"
 ls $SCRATCH_MNT
 _scratch_remount
diff --git a/254.out b/254.out
index e1c19eeadcc097291e318417e33e10cafeb311bc..582357a378fcfee3f558d6e53a6e6c2ac9762cf4 100644 (file)
--- a/254.out
+++ b/254.out
@@ -3,7 +3,7 @@ Creating file foo in root dir
 List root dir
 foo
 Creating snapshot of root dir
-Create a snapshot of '/mnt/scratch' in '/mnt/scratch/snap'
+Create a snapshot of 'SCRATCH_MNT' in 'SCRATCH_MNT/snap'
 List root dir after snapshot
 foo
 snap
@@ -13,7 +13,7 @@ List root dir after rm of foo
 snap
 List snapshot dir
 foo
-Create subvolume '/mnt/scratch/subvol'
+Create subvolume 'SCRATCH_MNT/subvol'
 Listing root dir
 snap
 subvol
@@ -33,7 +33,7 @@ subvol
 Listing subvolumes
 ID 256 top level 5 path snap
 ID 257 top level 5 path subvol
-Delete subvolume '/mnt/scratch/snap'
+Delete subvolume 'SCRATCH_MNT/snap'
 List root dir
 subvol
 List root dir