From 5eeaca942ab8fc090cd6b0ae2fede698dc9a6f5d Mon Sep 17 00:00:00 2001 From: Bernhard Voelker Date: Wed, 7 Sep 2011 11:58:52 +0200 Subject: 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/rm/read-only | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/rm') diff --git a/tests/rm/read-only b/tests/rm/read-only index c52883b60..489b1bf3d 100755 --- a/tests/rm/read-only +++ b/tests/rm/read-only @@ -19,6 +19,7 @@ . "${srcdir=.}/init.sh"; path_prepend_ ../src print_ver_ rm require_root_ +require_mkfs_PATH_ cwd=`pwd` cleanup_() { cd /; umount "$cwd/mnt"; } -- cgit v1.2.3-54-g00ecf