tests: adjust PATH to generally include /sbin and /usr/sbin
commit8df7652cfaf3286477c8c451e6a3b2ed977886bb
authorBernhard Voelker <mail@bernhard-voelker.de>
Thu, 1 Dec 2011 00:04:34 +0000 (1 01:04 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 1 Dec 2011 08:07:13 +0000 (1 09:07 +0100)
treea1165bb1fcd29f8fd09c7987189b7597c8339ed8
parent92b7b7708e3767050a433e7e443861e1ecc3a150
tests: adjust PATH to generally include /sbin and /usr/sbin

Commit 5eeaca94 added /sbin to the PATH for tests using mkfs. For other
tests, e.g. tests/cp-fiemap-perf using filefrag, we need /usr/sbin also.
Add both directories generally for the tests, "since many of us always
augment our PATH with all of the sbin paths all of the time anyway" (Bob
in http://lists.gnu.org/archive/html/coreutils/2011-11/msg00107.html).
The previous commit is hereby obsolete.
* tests/init.cfg (sanitize_path_): Add /sbin and /usr/sbin to PATH
unless already included. Needed for tests using admin tools like mkfs
and filefrag on systems where the user's environment does not have
these directories in the PATH.
* tests/init.cfg (require_mkfs_PATH_): Remove obsolete function.
* tests/cp/cp-a-selinux: Remove require_mkfs_PATH_ call.
* 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