From: Nick Alcock Date: Tue, 21 Mar 2023 12:54:02 +0000 (+0000) Subject: tests: skip some parts of tests/misc/tee.sh if run as root X-Git-Tag: v9.3~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeabb11eb6697a137894db066715a07550c6d82a;p=thirdparty%2Fcoreutils.git tests: skip some parts of tests/misc/tee.sh if run as root Similarly to the fix to tests/rmdir/ignore.sh in c0e5f8c59, tee should not be expected to fail when run with read-only outputs when run as root. * tests/misc/tee.sh: Add uid_is_privileged_ guard around test for read-only outputs. --- diff --git a/tests/misc/tee.sh b/tests/misc/tee.sh index e01c27ecce..0b97a9ea3d 100755 --- a/tests/misc/tee.sh +++ b/tests/misc/tee.sh @@ -79,9 +79,11 @@ test -f tee.exited || fail=1 ;; esac # Test with unwriteable files -touch file.ro || framework_failure_ -chmod a-w file.ro || framework_failure_ -returns_ 1 tee -p