From: "Adeodato Simó" <dato@net.com.org.es>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH v2] t7501-commit.sh: explicitly check that -F prevents invoking the editor
Date: Sat, 10 Jan 2009 11:32:52 +0100 [thread overview]
Message-ID: <20090110103252.GA32151@chistera.yi.org> (raw)
In-Reply-To: <alpine.DEB.1.00.0901101117100.30769@pacific.mpi-cbg.de>
* Johannes Schindelin [Sat, 10 Jan 2009 11:19:43 +0100]:
> Hi,
Hello,
> > test_expect_success '--signoff' '
> > echo "yet another content *narf*" >> foo &&
> > - echo "zort" | (
> > - test_set_editor "$TEST_DIRECTORY"/t7500/add-content &&
> > - git commit -s -F - foo
> > - ) &&
> > + echo "zort" | git commit -s -F - foo &&
> > git cat-file commit HEAD | sed "1,/^$/d" > output &&
> > test_cmp expect output
> > '
> AFAICT this still tests if -F - launches an editor, except that it _does_
> launch the editor, waiting for the user to quit the editor. Which is bad.
The default value of VISUAL for the test suite is ":" AFAICS. Hence,
even if it's called, it will return immediately.
If it would be called, without my patch the "--signoff" test would fail,
but there would be no obvious reason as to why. Seeing "editor not
invoked if -F is given FAILED" is much more clear IMHO.
Also note that there plenty of places in the test suite where -F is
used, but VISUAL is not set explicitly.
Cheers,
--
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
Excuse me for thinking a banana-eating contest was about eating a banana!
-- Paris Geller
next prev parent reply other threads:[~2009-01-10 10:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-29 9:24 [PATCH] t7500-commit.sh: do not call test_set_editor unnecessarily, it's confusing Adeodato Simó
2008-12-29 9:46 ` Junio C Hamano
2008-12-29 9:52 ` Adeodato Simó
2008-12-29 9:57 ` Junio C Hamano
2008-12-30 12:04 ` Johannes Schindelin
2009-01-09 17:30 ` [PATCH v2] t7501-commit.sh: explicitly check that -F prevents invoking the editor Adeodato Simó
2009-01-10 10:19 ` Johannes Schindelin
2009-01-10 10:32 ` Adeodato Simó [this message]
2009-01-10 11:48 ` Johannes Schindelin
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=20090110103252.GA32151@chistera.yi.org \
--to=dato@net.com.org.es \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--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).