From ba954ea1e1576505f2e0ce3efdbed9025739121d Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 27 Aug 2009 20:12:14 +0300 Subject: [PATCH] Fix testcases. * tests/extrac08.at: Ensure a predictable umask value. * tests/xform-h.at (xform): do not depend on file name ordering. --- tests/extrac08.at | 1 + tests/xform-h.at | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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' ]) -- 2.45.2