From: Mark Allen Date: Tue, 14 Jun 2005 17:09:39 +0000 (-0700) Subject: [PATCH] Unset TZ in t5000 X-Git-Tag: v0.99~264 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7737314de711aa3a2e4201355777cd41fb791c98;p=git.git [PATCH] Unset TZ in t5000 Unset TZ to force GMT in test #4 and add a set of parens around the length function in the awk script. Signed-off-by: Mark Allen Acked-by: Rene Scharfe Signed-off-by: Linus Torvalds --- diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh index fdd995798..6d72ed34c 100644 --- a/t/t5000-tar-tree.sh +++ b/t/t5000-tar-tree.sh @@ -50,8 +50,9 @@ 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,\ \(length\(\$5\)\<7\)\ ?\ \$5\":00\"\ :\ \$5\} \ + >b.mtime && echo "2005-05-27 22:00:00" >expected.mtime && diff expected.mtime b.mtime'