diff options
author | Johannes Sixt <j6t@kdbg.org> | 2012-04-20 08:25:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-20 13:38:51 -0700 |
commit | 05880b02221dc8da136e9febfa7853ad822b1ee1 (patch) | |
tree | 5e174789e72ad92c264f2577d1257200f1b1ff2d /compat/mkdtemp.c | |
parent | Git 1.7.10 (diff) | |
download | tgif-05880b02221dc8da136e9febfa7853ad822b1ee1.tar.xz |
t9300-fast-import: avoid 'exit' in test_expect_success snippets
Exiting from a for-loop early using '|| break' does not propagate the
failure code, and for this reason, the tests used just 'exit'. But this
ends the test script with 'FATAL: Unexpected exit code 1' in the case of
a failed test.
Fix this by moving the loop into a shell function, from which we can
simply return early.
While at it, modernize the style of the affected test cases.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mkdtemp.c')
0 files changed, 0 insertions, 0 deletions