t4205: don't exit test script on failure
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>
René Scharfe committed
Dec 1, 2022 at 22:48 UTC
77e04b2ed43c93c55ca4645be385c926b9102f6a
1 file changed
+1
-1
t/t4205-log-pretty-formats.sh
+1
-1
@@ -156,7 +156,7 @@ test_expect_success 'NUL termination with --reflog --pretty=oneline' '
156
for r in $revs
157
do
158
git show -s --pretty=oneline "$r" >raw &&
159
- cat raw | lf_to_nul || exit 1
159
+ cat raw | lf_to_nul || return 1
160
done >expect &&
161
# the trailing NUL is already produced so we do not need to
162
# output another one