tar.test: don't test non--p behavior as root.

Fixes https://github.com/landley/toybox/issues/512.
This commit is contained in:
Elliott Hughes 2024-07-23 15:52:51 -04:00 committed by Rob Landley
parent 3470a82350
commit 9b28d1ba0b

View File

@ -424,6 +424,7 @@ touch file
testing './file bug' 'tar c ./file > tar.tar && tar t ./file < tar.tar' \
'./file\n' '' ''
skipnot [ $(id -u) -ne 0 ] # Root doesn't count.
testing 'honor umask' \
'umask 0022 && rm -rf dir && mkdir dir && tar xf $FILES/tar/dir.tar && stat -c%A dir dir/file' \
'drwxr-xr-x\n-rwxr-xr-x\n' '' ''