From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id BFBAA7F58 for ; Wed, 11 Feb 2015 11:36:52 -0600 (CST) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay3.corp.sgi.com (Postfix) with ESMTP id 4B94AAC002 for ; Wed, 11 Feb 2015 09:36:52 -0800 (PST) Received: from sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id US46MfTELQsQbk4W for ; Wed, 11 Feb 2015 09:36:50 -0800 (PST) Message-ID: <54DB9332.5010606@sandeen.net> Date: Wed, 11 Feb 2015 11:36:50 -0600 From: Eric Sandeen MIME-Version: 1.0 Subject: [PATCH V2] fstests: shared/032 handle mkfs.* in either /sbin or /usr/sbin References: <54DB35F0.1010203@plexistor.com> <54DB8D2D.20104@sandeen.net> In-Reply-To: <54DB8D2D.20104@sandeen.net> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Boaz Harrosh , Dave Chinner , xfs@oss.sgi.com, linux-fsdevel , fstests@vger.kernel.org mkfs executables may live in either /sbin or /usr/sbin, and the current regexp in this test only catches the former, and so the test won't run properly with the latter. Fix this by filtering out whatever was found as ${MKFS_PROG}, rather than a hard-coded /sbin/mkfs path. Because the list was generated by using a wildcard with ${MKFS_PROG}.* this will always be the correct filter. Reported-by: Boaz Harrosh Signed-off-by: Eric Sandeen --- V2: KISS diff --git a/tests/shared/032 b/tests/shared/032 index a410003..3b06382 100755 --- a/tests/shared/032 +++ b/tests/shared/032 @@ -50,7 +50,7 @@ if [ "$FSTYP" == "btrfs" ]; then fi echo "Silence is golden." -for fs in `echo ${MKFS_PROG}.* | sed -e 's/.sbin.mkfs.//g'` +for fs in `echo ${MKFS_PROG}.* | sed -e "s:${MKFS_PROG}.::g"` do preop="" # for special input needs preargs="" # for any special pre-device options _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs