xfs
[Top] [All Lists]

[PATCH] xfstests: skip fsr tests if xfs_fsr utils not found

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests: skip fsr tests if xfs_fsr utils not found
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Sun, 19 Apr 2009 16:50:59 -0500
In-reply-to: <49EB8F90.20705@xxxxxxxxxxx>
References: <49EB8F90.20705@xxxxxxxxxxx>
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
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@xxxxxxxxxxx>
---

diff --git a/042 b/042
index 7c2bcac..6628040 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 060c0bc..3ce4ee1 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"


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