]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
shared/032: handle mkfs.* in either /sbin or /usr/sbin
authorEric Sandeen <sandeen@sandeen.net>
Thu, 12 Feb 2015 03:11:04 +0000 (14:11 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 12 Feb 2015 03:11:04 +0000 (14:11 +1100)
commit4046dd9fc6b0d1e3e1e34b80b72dc00117c1a44a
tree0a02dcf0b2346963531479f4adf6a6d7c976fb60
parent75d2b0f122d69ce6dc7c3752ba20ab3455ac1d7e
shared/032: handle mkfs.* in either /sbin or /usr/sbin

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 <boaz@plexistor.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/shared/032