Re: [PATCH v10 3/3] commit: add a commit.verbose config variable
- From
SZEDER Gábor <szeder@ira.uka.de>
- Date
- Mar 27, 2016, 12:07 UTC
- Message-ID
- <20160327140733.Horde.hQiEcpos_hNprvjPS1zIbi2@webmail.informatik.kit.edu>
- In-Reply-To
- <CAFZEwPOhTC_LjUPHMN0PJsc94gvmHgmQL2Xe63oRGOiEMR2jjQ@mail.gmail.com>
Quoting Pranit Bauva <pranit.bauva@gmail.com>:
Show 12 quoted lines
> On Sun, Mar 27, 2016 at 5:21 PM, SZEDER Gábor <szeder@ira.uka.de> wrote: >>> +test_expect_success 'commit.verbose true and --no-verbose' ' >>> + git -c commit.verbose=true commit --amend --no-verbose && >>> + ! test -s out >> >> Please use the test_must_be_empty helper instead, because it has a >> nice, human-readable name and it complains with a helpful error >> message if something goes wrong, whereas 'test -s' just fails >> silently. > > Thanks for pointing it out. I was unsure whether 'test -s' is a good > choice but used it since I did not know any other alternative.
t/test-lib-functions.sh contains all our test helpers functions, that's where you can look for a suitable helper, should it be necessary.