From 9b28d1ba0b0b8ff3f424044ad83b17e260f3c14e Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 23 Jul 2024 15:52:51 -0400 Subject: [PATCH] tar.test: don't test non-`-p` behavior as root. Fixes https://github.com/landley/toybox/issues/512. --- tests/tar.test | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/tar.test b/tests/tar.test index 13bdc49a..0a50a583 100755 --- a/tests/tar.test +++ b/tests/tar.test @@ -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' '' '' -- 2.39.2