From: Jeff King <peff@peff.net>
To: Armin Kunaschik <megabreit@googlemail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
David Aguilar <davvid@gmail.com>, Git List <git@vger.kernel.org>
Subject: Re: t7610-mergetool.sh test failure
Date: Wed, 22 Jun 2016 13:12:02 -0400 [thread overview]
Message-ID: <20160622171202.GB10056@sigill.intra.peff.net> (raw)
In-Reply-To: <CALR6jEisU=ZCZADcTx685vSrz96jUaxfAbKMEPQn0KRFqtVw=A@mail.gmail.com>
On Wed, Jun 22, 2016 at 06:53:40PM +0200, Armin Kunaschik wrote:
> Another thread I'm trying to revive... the discussion went away quite a bit
> from the suggested patch to conditionally run this one test only when mktemp
> is available.
>
> I'll create a patch when there are chances it is accepted.
>
> I could think of a way to replace mktemp with a perl one-liner (or
> small script)...
> conditionally, when mktemp is not available... maybe in the build process?
> As far as I can see, perl is absolutely necessary and can therefore be used to
> "solve" the mktemp problem...
>
> ...or maybe I should stop bringing this up again :-)
I think perl is necessary for the test suite, but not for git-mergetool
itself. And this is a problem in the script itself, IIRC; so it really
is broken on your system (albeit in a really tiny way), and not just a
test portability thing.
So the viable solutions to me are one of:
1. Accept that this little part of mergetool doesn't work on systems
without "mktemp", make sure we fail gracefully (we seem to), and make
sure the test suite can handle this case (which was the earlier
patch, I think).
2. Implement our own git-mktemp (or similar abstraction) in C. We
already have all the code, so it really is just a thin wrapper.
I don't mind (2), but given the lack of people clamoring for a fix to
mergetool itself, I'm perfectly happy with (1).
-Peff
prev parent reply other threads:[~2016-06-22 17:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-24 16:44 t7610-mergetool.sh test failure Armin Kunaschik
2016-05-24 16:45 ` Junio C Hamano
2016-05-24 16:53 ` Armin Kunaschik
2016-05-25 23:16 ` Jeff King
2016-05-26 1:51 ` Jeff King
2016-05-27 4:40 ` David Aguilar
2016-05-27 5:00 ` Jeff King
2016-05-27 6:33 ` Junio C Hamano
2016-05-27 18:24 ` Jeff King
2016-05-27 19:58 ` Junio C Hamano
2016-05-27 20:01 ` Jeff King
2016-06-22 16:53 ` Armin Kunaschik
2016-06-22 17:12 ` Jeff King [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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160622171202.GB10056@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=davvid@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=megabreit@googlemail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).