From: Jonathan Nieder <jrnieder@gmail.com>
To: "René Scharfe" <rene.scharfe@lsrfire.ath.cx>
Cc: git discussion list <git@vger.kernel.org>,
Junio C Hamano <gitster@pobox.com>, Jeff King <peff@peff.net>,
BJ Hargrave <bj@bjhargrave.com>
Subject: Re: [PATCH 3/2] t5004: resurrect original empty tar archive test
Date: Fri, 10 May 2013 23:03:32 -0700 [thread overview]
Message-ID: <20130511060332.GA3394@elie> (raw)
In-Reply-To: <518BA64A.5020302@lsrfire.ath.cx>
Hi,
René Scharfe wrote:
> [Subject: t5004: resurrect original empty tar archive test]
[...]
> The different approaches test different things: The existing one is
> for empty trees, for which we know the exact expected output and thus
> we can simply check it without extracting; the new one is for commits
> with empty trees, whose archives include stamps and so the more
> "natural" check by extraction is a better fit because it focuses on
> the interesting aspect, namely the absence of any archive entries.
>
> Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
When first reading I was a little confused: does this patch resurrect
the original, existing test for empty tree handling in the form it had
before patch 2/3, or is it adding a new, distinct test that
complements the existing one that patch 2/3 modified?
A quick glance back at v1.8.2.2~7^2 (t5004: fix issue with empty
archive test and bsdtar, 2013-04-10) cleared matters up. The original
test that is being resurrected is the one from before that commit.
Maybe a reminder in the commit message would help. E.g.,
The earlier version of the same check (before 24676f02, "t5004: fix
issue with empty archive test and bsdtar") revived by this patch tests
a different thing: The modified check is for empty trees, for which we
know the exact expected output and thus we can simply check it without
extracting; the original one is for commits with empty trees, whose
archives include stamps and so the more "natural" check by extraction
is a better fit because it focuses on the interesting aspect, namely
the absence of any archive entries.
With or without such a change,
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Would it make sense to define HEADER_ONLY_TAR_OK as a lazy prereq in
the same file (even though it is only used once), so the code that
checks "tar" is not run if this test is being skipped (e.g.,
using GIT_TEST_SKIP) for some other reason?
Thanks,
Jonathan
next prev parent reply other threads:[~2013-05-11 6:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-09 13:10 [PATCH 1/2] t5004: ignore pax global header file René Scharfe
2013-05-09 13:13 ` [PATCH 2/2] t5004: avoid using tar for checking emptiness of archive René Scharfe
2013-05-09 13:36 ` [PATCH 3/2] t5004: resurrect original empty tar archive test René Scharfe
2013-05-11 6:03 ` Jonathan Nieder [this message]
2013-05-09 18:21 ` [PATCH 2/2] t5004: avoid using tar for checking emptiness of archive Eric Sunshine
2013-05-09 19:12 ` René Scharfe
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=20130511060332.GA3394@elie \
--to=jrnieder@gmail.com \
--cc=bj@bjhargrave.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=rene.scharfe@lsrfire.ath.cx \
/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).