git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Unset TZ in t5000
@ 2005-06-13  0:24 Mark Allen
  2005-06-13 15:54 ` Rene Scharfe
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Allen @ 2005-06-13  0:24 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

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 <mrallen1@yahoo.com>

[-- Attachment #2: 3951729877-unset-tz-t5000.patch.txt --]
[-- Type: text/plain, Size: 481 bytes --]

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'

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-14 17:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-13  0:24 [PATCH] Unset TZ in t5000 Mark Allen
2005-06-13 15:54 ` Rene Scharfe
2005-06-13 17:27   ` Mark Allen
2005-06-14 13:17   ` Mark Allen
2005-06-14 15:17     ` Rene Scharfe
2005-06-14 17:09       ` Mark Allen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).