diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2016-06-02 07:28:01 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-01-14 12:54:29 +0200 |
commit | c697d625982df4941ed51b6478256f9e7c7b8840 (patch) | |
tree | 95e80a470f1e4eb79ceade4df4f2016644540213 | |
parent | b0930da045d4dc9750097876f0a3f672dc99ad11 (diff) | |
download | tar-c697d625982df4941ed51b6478256f9e7c7b8840.tar.gz |
tests: fix numeric.at for BSD
While creating file, BSD kernels inherit the group ownership from
parent directory.
http://lists.gnu.org/archive/html/bug-tar/2016-06/msg00000.html
* tests/numeric.at: Attempt to 'chown' the newly created directory
to proper group (at least on affected machines that command is
expected to succeed).
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | tests/numeric.at | 9 |
2 files changed, 7 insertions, 3 deletions
@@ -95,6 +95,7 @@ Christian Laubscher christian.laubscher@tiscalinet.ch Christian T. Dum ctd@mpe-garching.mpg.de Christian von Roques roques@pond.sub.org Christian Wetzel wetzel@phoenix-pacs.de +Christian Weisgerber naddy@mips.inka.de Christoph Litauer litauer@mailhost.uni-koblenz.de Christophe Colle colle@krtkg1.rug.ac.be Christophe Kalt Christophe.Kalt@kbcfp.com diff --git a/tests/numeric.at b/tests/numeric.at index db99d902..4ef92c7a 100644 --- a/tests/numeric.at +++ b/tests/numeric.at @@ -27,14 +27,17 @@ tar $1 -vvf a dir |dnl ]) AT_TAR_CHECK([ -mkdir dir -genfile --file dir/file - MYUID=$(id -u) || AT_SKIP_TEST MYGID=$(id -g) || AT_SKIP_TEST MYUSR=$(id -un) || AT_SKIP_TEST MYGRP=$(id -gn) || AT_SKIP_TEST +mkdir dir +# Ensure correct group id on BSDs. +chown :$MYGID dir >/dev/null 2>/dev/null +genfile --file dir/file + + TESTOP([--create]) TESTOP([--list]) TESTOP([--diff]) |