tests: skip some parts of tests/misc/tee.sh if run as root
commiteeabb11eb6697a137894db066715a07550c6d82a
authorNick Alcock <nick.alcock@oracle.com>
Tue, 21 Mar 2023 12:54:02 +0000 (21 12:54 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 21 Mar 2023 16:15:18 +0000 (21 16:15 +0000)
tree078c6333b547fc89519a439db13f1266d0818006
parentbdda9adb38bcc437d752e70bb83b4da1acda89df
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.
tests/misc/tee.sh