From: Eric Sandeen Date: Mon, 20 Apr 2009 02:10:42 +0000 (-0500) Subject: xfstests: skip fsr tests if xfs_fsr utils not found X-Git-Tag: v1.1.0~312 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=766b997b78bfafae884aa2900b4fd67c90b28a06;p=xfstests-dev.git xfstests: skip fsr tests if xfs_fsr utils not found 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 Reviewed-by: Felix Blyakher --- diff --git a/042 b/042 index 7c2bcac4..66280408 100755 --- 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 060c0bc5..3ce4ee1d 100755 --- 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"