List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: [PATCH] t0109: chain operations with &&
Date: Wed, 10 Apr 2013 23:40:48 +0100	[thread overview]
Message-ID: <20130410224048.GL2222@serenity.lan> (raw)
In-Reply-To: <CAHmME9o9ZwATFpc3BJ0F4wesfBRLp+GuobbfooRb--MFV_eZOA@mail.gmail.com>

On Wed, Apr 10, 2013 at 02:16:44PM +0200, Jason A. Donenfeld wrote:
> On Wed, Apr 10, 2013 at 2:11 PM, John Keeping <john at keeping.me.uk> wrote:
> > Without '&&' between operations, we will not detect if strace or cgit
> > exit with an error status, which would cause a false positive test
> > status in this case.
> 
> I wonder if for some of the larger && chains in other tests "set -e"
> would be a bit cleaner. I don't know if setting that inside the test
> string will bubble the setting back up to the test harness (which
> would be bad) or if it would be local for the test (which would be
> ideal). Something to investigate.

I expect if it was that easy, the tests in Git would take an approach
more like that.  Personally, I have found in the past that using
"set -e" often leads to problems later on, so I would prefer to keep the
&&-chain.




      reply	other threads:[~2013-04-10 22:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-10 12:11 john
2013-04-10 12:14 ` Jason
2013-04-10 12:16 ` Jason
2013-04-10 22:40   ` john [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=20130410224048.GL2222@serenity.lan \
    --to=cgit@lists.zx2c4.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).