summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc86546)
raw | patch | inline | side by side (parent: fc86546)
author | Mark Allen <mrallen1@yahoo.com> | |
Tue, 14 Jun 2005 17:09:39 +0000 (10:09 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 14 Jun 2005 19:08:06 +0000 (12:08 -0700) |
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>
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>
t/t5000-tar-tree.sh | patch | blob | history |
diff --git a/t/t5000-tar-tree.sh b/t/t5000-tar-tree.sh
index fdd9957984904e0635fc5f4e72947ea29cb953ba..6d72ed34c10f734bc0f22a0155d789130548bc6d 100644 (file)
--- a/t/t5000-tar-tree.sh
+++ b/t/t5000-tar-tree.sh
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'