xfs
[Top] [All Lists]

[PATCH] xfs/279: use MKFS_XFS_PROG, not hardcoded path

To: xfs-oss <xfs@xxxxxxxxxxx>, fstests@xxxxxxxxxxxxxxx
Subject: [PATCH] xfs/279: use MKFS_XFS_PROG, not hardcoded path
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Fri, 13 Jun 2014 16:10:42 -0500
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
I'm really not sure why this wasn't this way from the start.
On some systems it's in /usr/sbin, and the test fails.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---

diff --git a/tests/xfs/279 b/tests/xfs/279
index 872f8be..cde7d21 100755
--- a/tests/xfs/279
+++ b/tests/xfs/279
@@ -62,7 +62,7 @@ _check_mkfs()
 {
        echo "===================" 
        echo "mkfs with opts: $@" | sed -e "s,/dev/sd.,DEVICE,"
-       /sbin/mkfs.xfs $@ 2>/dev/null > $tmp.mkfs.full
+       $MKFS_XFS_PROG $@ 2>/dev/null > $tmp.mkfs.full
        if [ $? -ne 0 ]; then
                echo "Failed."
                return

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