Update test to mask id for root checks

This commit is contained in:
Eric Renfro 2024-08-03 15:57:26 -04:00
parent b17a565599
commit e309ffafc0
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -12,6 +12,10 @@ export -f uname
whoami() { echo "root"; }
export -f whoami
# bypasses root check
id() { echo "0"; }
export -f id
skip_if_not_root() {
if [ "$EUID" -ne 0 ]; then
skip "Must be root for this test."