tests: adjust PATH to include /sbin for mkfs-using tests
authorBernhard Voelker <mail@bernhard-voelker.de>
Wed, 7 Sep 2011 09:58:52 +0000 (11:58 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 7 Sep 2011 16:00:55 +0000 (18:00 +0200)
commit5eeaca942ab8fc090cd6b0ae2fede698dc9a6f5d
tree6f08f0384fb441e15a2b606d73362a1e92cce2d1
parentf85ca2c876f6bc087dd1eca692f79f5f5d7f8bb3
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.
tests/cp/cp-a-selinux
tests/cp/cp-mv-enotsup-xattr
tests/cp/sparse-fiemap
tests/init.cfg
tests/mkdir/writable-under-readonly
tests/rm/read-only