summaryrefslogtreecommitdiff
path: root/git-bisect.sh
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j6t@kdbg.org>2012-04-20 08:25:09 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-04-20 13:38:51 -0700
commit05880b02221dc8da136e9febfa7853ad822b1ee1 (patch)
tree5e174789e72ad92c264f2577d1257200f1b1ff2d /git-bisect.sh
parentGit 1.7.10 (diff)
downloadtgif-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 'git-bisect.sh')
0 files changed, 0 insertions, 0 deletions