From: Mark Allen <mrallen1@yahoo.com>
To: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>, torvalds@osdl.org
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Unset TZ in t5000
Date: Tue, 14 Jun 2005 10:09:39 -0700 (PDT) [thread overview]
Message-ID: <20050614170939.69223.qmail@web41206.mail.yahoo.com> (raw)
In-Reply-To: <42AEF512.5040107@lsrfire.ath.cx>
[-- Attachment #1: Type: text/plain, Size: 290 bytes --]
Linus,
Please apply this patch to make t5000 more portable.
Thanks,
--Mark
---
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>
[-- Attachment #2: 560000162-t5000-portability.patch.txt --]
[-- Type: text/plain, Size: 528 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,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'
prev parent reply other threads:[~2005-06-14 17:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050614170939.69223.qmail@web41206.mail.yahoo.com \
--to=mrallen1@yahoo.com \
--cc=git@vger.kernel.org \
--cc=rene.scharfe@lsrfire.ath.cx \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).