On Sun, Mar 27, 2016 at 7:59 AM, Pranit Bauva <pranit.ba...@gmail.com> wrote:
> On Sun, Mar 27, 2016 at 5:21 PM, SZEDER Gábor <sze...@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.

For these particular tests, it would be more stylized to use:

    test_line_count = 0 out

which would keep them consistent with other tests in the same file which use:

    test_line_count = 1 out
    ...
    test_line_count = 2 out

however, that's a minor point.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to