git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>,
	git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH v2 1/1] t2024: mark a `checkout -p` test as requiring Perl
Date: Thu, 23 Aug 2018 22:59:48 +0200 (DST)	[thread overview]
Message-ID: <nycvar.QRO.7.76.6.1808232259330.73@tvgsbejvaqbjf.bet> (raw)
In-Reply-To: <877ekhf7rj.fsf@evledraar.gmail.com>

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

Hi Ævar,

On Thu, 23 Aug 2018, Ævar Arnfjörð Bjarmason wrote:

> 
> On Thu, Aug 23 2018, Johannes Schindelin via GitGitGadget wrote:
> 
> > From: Johannes Schindelin <johannes.schindelin@gmx.de>
> >
> > A recently-added test case tries to verify that the output of `checkout
> > -p` contains a certain piece of advice.
> >
> > But if Git was built without Perl and therefore lacks support for `git
> > add -i`, the error output contains the hint that `-p` is not even
> > available instead.
> >
> > Let's just skip that test case altogether if Git was built with NO_PERL.
> >
> > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
> > ---
> >  t/t2024-checkout-dwim.sh | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/t/t2024-checkout-dwim.sh b/t/t2024-checkout-dwim.sh
> > index 26dc3f1fc0..29e1e25300 100755
> > --- a/t/t2024-checkout-dwim.sh
> > +++ b/t/t2024-checkout-dwim.sh
> > @@ -76,7 +76,8 @@ test_expect_success 'checkout of branch from multiple remotes fails #1' '
> >  	test_branch master
> >  '
> >
> > -test_expect_success 'checkout of branch from multiple remotes fails with advice' '
> > +test_expect_success NO_PERL \
> > +	'checkout of branch from multiple remotes fails with advice' '
> >  	git checkout -B master &&
> >  	test_might_fail git branch -D foo &&
> >  	test_must_fail git checkout foo 2>stderr &&
> 
> This issue is already fixed in master as 3338e9950e ("t2024: mark test
> using "checkout -p" with PERL prerequisite", 2018-08-18).

Excellent,
Dscho

      reply	other threads:[~2018-08-23 20:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <pull.20.git.gitgitgadget@gmail.com>
2018-08-23 14:41 ` [PATCH v2 0/1] Make t2024 NO_PERL-safe Johannes Schindelin via GitGitGadget
2018-08-23 14:41   ` [PATCH v2 1/1] t2024: mark a `checkout -p` test as requiring Perl Johannes Schindelin via GitGitGadget
2018-08-23 15:00     ` Ævar Arnfjörð Bjarmason
2018-08-23 20:59       ` Johannes Schindelin [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=nycvar.QRO.7.76.6.1808232259330.73@tvgsbejvaqbjf.bet \
    --to=johannes.schindelin@gmx.de \
    --cc=avarab@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=gitster@pobox.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.
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).