]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid spurious "make check-root" failure
authorJim Meyering <meyering@redhat.com>
Wed, 30 Apr 2008 20:50:02 +0000 (22:50 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 30 Apr 2008 21:29:10 +0000 (23:29 +0200)
* 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.

README
tests/cp/cp-a-selinux

diff --git a/README b/README
index 7a608f41c3da92fd453550219e05b2536bc93083..7c1883d48245d9dbe0857a532f1baa5d2904573a 100644 (file)
--- a/README
+++ b/README
@@ -145,7 +145,7 @@ I find that it is best to unpack and build as a non-privileged
 user, and then to run the following command as that user in order
 to run the privilege-requiring tests:
 
-  sudo env NON_ROOT_USERNAME=$USER make -k check-root
+  sudo env PATH="$PATH" NON_ROOT_USERNAME=$USER make -k check-root
 
 If you can run the tests as root, please do so and report any
 problems.  We get much less test coverage in that mode, and it's
index 8f854bd0c3e9822286ab04a82cff205f0e642330..dfbded1d2416c063abb10b5a59e53d39ec96c790 100755 (executable)
@@ -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