Skip to content

Commit 77e04b2

Browse files
rscharfegitster
authored andcommitted
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 <[email protected]> Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e7e5c6f commit 77e04b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4205-log-pretty-formats.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ test_expect_success 'NUL termination with --reflog --pretty=oneline' '
156156
for r in $revs
157157
do
158158
git show -s --pretty=oneline "$r" >raw &&
159-
cat raw | lf_to_nul || exit 1
159+
cat raw | lf_to_nul || return 1
160160
done >expect &&
161161
# the trailing NUL is already produced so we do not need to
162162
# output another one

0 commit comments

Comments
 (0)