]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t4205: don't exit test script on failure
authorRené Scharfe <l.s.r@web.de>
Thu, 1 Dec 2022 21:48:24 +0000 (22:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Dec 2022 23:25:02 +0000 (08:25 +0900)
Only abort the individual check instead of exiting the whole test script
if git show fails.  Noticed with GIT_TEST_PASSING_SANITIZE_LEAK=check.

Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4205-log-pretty-formats.sh

index e448ef2928a8261e7c991ee6eb0e96bf299d84ee..0404491d6ee9fa275764497f917d90a7334d6776 100755 (executable)
@@ -156,7 +156,7 @@ test_expect_success 'NUL termination with --reflog --pretty=oneline' '
        for r in $revs
        do
                git show -s --pretty=oneline "$r" >raw &&
-               cat raw | lf_to_nul || exit 1
+               cat raw | lf_to_nul || return 1
        done >expect &&
        # the trailing NUL is already produced so we do not need to
        # output another one