]> git.ipfire.org Git - thirdparty/git.git/commit
t: prepare execution of potentially failing commands for `set -e`
authorPatrick Steinhardt <ps@pks.im>
Tue, 21 Apr 2026 07:34:19 +0000 (09:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Apr 2026 22:53:36 +0000 (15:53 -0700)
commit5f0d596fe4a7a4ea8752d3e5115190906c1bea4a
tree7792af269d91d3c374f1cf95720b3372c9ced918
parent0c6600cdc751e8c018e6baddc0edce070c7c3f55
t: prepare execution of potentially failing commands for `set -e`

Several of our tests verify whether a certain binary can be executed,
potentially skipping tests in case we cannot, for example because the
binary doesn't exist. In those cases we often run the binary outside of
any conditionally.

This will start to fail once we enable `set -e`, as that will cause us
to bail out the test immediately. Improve these tests by executing them
inside of a conditional instead.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-git-svn.sh
t/lib-httpd.sh
t/t3901-i18n-patch.sh
t/t5000-tar-tree.sh
t/t7422-submodule-output.sh
t/t9200-git-cvsexportcommit.sh
t/t9400-git-cvsserver-server.sh
t/t9401-git-cvsserver-crlf.sh
t/t9402-git-cvsserver-refs.sh
t/test-lib-functions.sh
t/test-lib.sh