From e3171c43ebad36ca0746bc625607f87269ff4e73 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 30 Apr 2008 22:50:02 +0200 Subject: tests: avoid spurious "make check-root" failure * README (Running tests as root): Also set PATH in suggested "sudo" command. This avoids failure of at least tests/cp/cp-a-selinux when the default PATH does not contain /sbin. * tests/cp/cp-a-selinux: Don't redirect stderr to /dev/null. "mkfs" was failing due to /sbin not being in PATH. --- tests/cp/cp-a-selinux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/cp/cp-a-selinux') diff --git a/tests/cp/cp-a-selinux b/tests/cp/cp-a-selinux index 8f854bd0c..dfbded1d2 100755 --- a/tests/cp/cp-a-selinux +++ b/tests/cp/cp-a-selinux @@ -34,7 +34,7 @@ cleanup_() { cd /; umount "$cwd/mnt"; } dd if=/dev/zero of=blob bs=8192 count=200 > /dev/null 2>&1 \ || framework_failure mkdir mnt || framework_failure -mkfs -t ext2 -F blob > /dev/null 2>&1 || framework_failure +mkfs -t ext2 -F blob || framework_failure # This context is special: it works even when mcstransd isn't running. ctx=root:object_r:tmp_t:s0 -- cgit v1.2.3-70-g09d2