summaryrefslogtreecommitdiffstats
path: root/t/t4013/diff.format-patch_--inline_--stdout_initial..master^
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-04-21 09:34:15 +0200
committerJunio C Hamano <gitster@pobox.com>2026-04-22 15:53:35 -0700
commit990fd368ac7fcb56f69a27ba341cac10f04e285b (patch)
tree158203cc8aa5094a1f26a97f1eed26e78390def5 /t/t4013/diff.format-patch_--inline_--stdout_initial..master^
parent0cb6316b08463d9ec491e6db5ce53c3a65c048a8 (diff)
downloadgit-990fd368ac7fcb56f69a27ba341cac10f04e285b.tar.gz
git-990fd368ac7fcb56f69a27ba341cac10f04e285b.zip
t: prepare `test_must_fail ()` for `set -e`
The helper function `test_must_fail ()` executes a specific Git command that may or may not fail in a specific way. This is done by executing the command in question and then comparing its exit code against a set of conditions. This works, but once we run our test suite with `set -e` we may bail out of `test_must_fail ()` early in case the command actually fails, even though we expect it to fail. Prepare for this change by handling the failed case with `||`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_initial..master^')
0 files changed, 0 insertions, 0 deletions