[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 <mrallen1@yahoo.com>
Acked-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Mark Allen 2005-06-14 10:09:39 -07:00 committed by Linus Torvalds
parent fc865468d8
commit 7737314de7

View File

@ -50,8 +50,9 @@ test_expect_success \
test_expect_success \ test_expect_success \
'validate file modification time' \ 'validate file modification time' \
'tar tvf b.tar a/a | 'TZ= tar tvf b.tar a/a |
awk \{print\ \$4,\ length\(\$5\)\<7\ ?\ \$5\":00\"\ :\ \$5\} >b.mtime && awk \{print\ \$4,\ \(length\(\$5\)\<7\)\ ?\ \$5\":00\"\ :\ \$5\} \
>b.mtime &&
echo "2005-05-27 22:00:00" >expected.mtime && echo "2005-05-27 22:00:00" >expected.mtime &&
diff expected.mtime b.mtime' diff expected.mtime b.mtime'