From: Sergey Poznyakoff Date: Thu, 27 Aug 2009 17:12:14 +0000 (+0300) Subject: Fix testcases. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ba954ea1e1576505f2e0ce3efdbed9025739121d;p=chaz%2Ftar Fix testcases. * tests/extrac08.at: Ensure a predictable umask value. * tests/xform-h.at (xform): do not depend on file name ordering. --- diff --git a/tests/extrac08.at b/tests/extrac08.at index 2bcd10c..6ca33bd 100644 --- a/tests/extrac08.at +++ b/tests/extrac08.at @@ -34,6 +34,7 @@ AT_SETUP([restoring mode on existing directory]) AT_KEYWORDS([extract extrac08]) AT_TAR_CHECK([ +umask 000 mkdir dir chmod 755 dir echo bla > dir/file diff --git a/tests/xform-h.at b/tests/xform-h.at index 8adf737..28de384 100644 --- a/tests/xform-h.at +++ b/tests/xform-h.at @@ -32,7 +32,7 @@ AT_KEYWORDS([transform xform xform-h]) m4_define([xform],[ echo "$1" -tar cf archive --transform="s,^basedir/,,$2" basedir +tar cf archive --transform="s,^basedir/,,$2" basedir/test basedir/test_link tar tvf archive | sed -n 's/.*test_link link to //p' ])