]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: skip fsr tests if xfs_fsr utils not found
authorEric Sandeen <sandeen@sandeen.net>
Mon, 20 Apr 2009 02:10:42 +0000 (21:10 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 20 Apr 2009 02:10:42 +0000 (21:10 -0500)
Similar to the xfsdump-related patch; gracefully fail
if no xfs_fsr is found.

I'll probably send another for the acl & attr userspace,
it's actually not always installed on minimal boxes.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
042
111

diff --git a/042 b/042
index 7c2bcac4778922411e287dfc681f070cb228ea77..662804081162f1d69b259c86cafc29adc1aca90a 100755 (executable)
--- a/042
+++ b/042
@@ -37,6 +37,8 @@ _supported_os IRIX Linux
 
 _require_scratch
 
+[ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found"
+
 _cull_files()
 {
     perl -e "\$manifest=\"$tmp.manifest\";" -e '
diff --git a/111 b/111
index 060c0bc56c418ebe272d842c2cb3516502646a06..3ce4ee1d1e7b625103cb3f77c8a1b991ac67be65 100755 (executable)
--- a/111
+++ b/111
@@ -27,6 +27,8 @@ _supported_fs xfs
 _supported_os Linux
 _require_scratch
 
+[ "$XFS_FSR_PROG" = "" ] && _notrun "xfs_fsr not found"
+
 # real QA test starts here
 umount $SCRATCH_DEV 2>/dev/null
 MKFS_OPTIONS="-bsize=4096"