From: Mark Allen Date: Mon, 13 Jun 2005 00:24:44 GMT Subject: [PATCH] Unset TZ in t5000 Message-ID: <20050613002444.80848.qmail@web41213.mail.yahoo.com> Unset TZ in t5000 and remove GNU awkism The t5000 test script fails at test #4 on my box because my copy of tar adjusts the time in the tarfile for local time if TZ is set. Explicitly unset TZ so that it reports GMT time. Additionally, my version of AWK doesn't like the "length" directive, so this patch removes it. Signed-off-by: Mark Allen diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -50,8 +50,8 @@ test_expect_success \ test_expect_success \ 'validate file modification time' \ - 'tar tvf b.tar a/a | - awk \{print\ \$4,\ length\(\$5\)\<7\ ?\ \$5\":00\"\ :\ \$5\} >b.mtime && + 'TZ= tar tvf b.tar a/a | + awk \{print\ \$4\"\ \"\$5\} >b.mtime && echo "2005-05-27 22:00:00" >expected.mtime && diff expected.mtime b.mtime'