scripts/gzip_tests.sh: when root, skip test that requires non-root

This commit is contained in:
Eric Biggers 2020-11-21 12:42:09 -08:00
parent 9f257c0123
commit 7be9d514f8

View File

@ -363,6 +363,7 @@ assert_skipped gunzip 1.gz 2.gz
cmp 2 file
if (( $(id -u) != 0 )); then
begin_test 'Multiple files, continue on error'
cp file 1
cp file 2
@ -376,6 +377,7 @@ chmod a-r 1.gz
assert_error 'Permission denied' gunzip 1.gz 2.gz
[ ! -e 1 ]
cmp 2 file
fi
begin_test 'Compressing empty file'