diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2018-02-13 01:36:01 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-13 10:45:26 -0800 |
commit | 2708ef4af6ed60b89e93de72673e7b785b93d760 (patch) | |
tree | 82c01026ce0e911e7453446e0506ea70141fd239 /commit-slab.h | |
parent | Git 2.16.1 (diff) | |
download | tgif-2708ef4af6ed60b89e93de72673e7b785b93d760.tar.xz |
t6300-for-each-ref: fix "more than one quoting style" tests
'git for-each-ref' should error out when invoked with more than one
quoting style options. The tests checking this have two issues:
- They run 'git for-each-ref' upstream of a pipe, hiding its exit
code, thus don't actually checking that 'git for-each-ref' exits
with error code.
- They check the error message in a rather roundabout way.
Ensure that 'git for-each-ref' exits with an error code using the
'test_must_fail' helper function, and check its error message by
grepping its saved standard error.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-slab.h')
0 files changed, 0 insertions, 0 deletions