summaryrefslogtreecommitdiff
path: root/tests/cp/cp-mv-enotsup-xattr
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2011-09-07 11:58:52 +0200
committerJim Meyering <meyering@redhat.com>2011-09-07 18:00:55 +0200
commit5eeaca942ab8fc090cd6b0ae2fede698dc9a6f5d (patch)
tree6f08f0384fb441e15a2b606d73362a1e92cce2d1 /tests/cp/cp-mv-enotsup-xattr
parentf85ca2c876f6bc087dd1eca692f79f5f5d7f8bb3 (diff)
downloadcoreutils-5eeaca942ab8fc090cd6b0ae2fede698dc9a6f5d.tar.xz
tests: adjust PATH to include /sbin for mkfs-using tests
* tests/init.cfg (require_mkfs_PATH_): New function to test whether mkfs is in PATH, otherwise adding /sbin to PATH. Needed for distributions (OpenSuSE, Solaris) in which sudo does not include /sbin in PATH. * tests/cp/cp-a-selinux: Use require_mkfs_PATH_. * tests/cp/cp-mv-enotsup-xattr: Likewise. * tests/cp/sparse-fiemap: Likewise. * tests/mkdir/writable-under-readonly: Likewise. * tests/rm/read-only: Likewise.
Diffstat (limited to 'tests/cp/cp-mv-enotsup-xattr')
-rwxr-xr-xtests/cp/cp-mv-enotsup-xattr1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/cp/cp-mv-enotsup-xattr b/tests/cp/cp-mv-enotsup-xattr
index 9857fec41..32798d2fc 100755
--- a/tests/cp/cp-mv-enotsup-xattr
+++ b/tests/cp/cp-mv-enotsup-xattr
@@ -22,6 +22,7 @@
print_ver_ cp mv
require_root_
+require_mkfs_PATH_
cwd=`pwd`
cleanup_() { cd /; umount "$cwd/noxattr"; umount "$cwd/xattr"; }