]> git.ipfire.org Git - thirdparty/git.git/commit
t983*: use prereq to check for Python-specific git-p4(1) support
authorPatrick Steinhardt <ps@pks.im>
Mon, 2 Jun 2025 06:44:44 +0000 (08:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Jun 2025 14:51:42 +0000 (07:51 -0700)
commita1199a23896c674f57f3942358e2f05b3a075e7a
tree9d21917e901db1c712c1e9cde1dcef67ea716de5
parent844537091d3ab00aaec73bebd6b4c70adfd998fb
t983*: use prereq to check for Python-specific git-p4(1) support

The tests in t9835 and t9836 verify that git-p4(1) works with both
Python 2 and 3, respectively. To determine whether we have those Python
versions in the first place we create a wrapper script that directly
executes the git-p4(1) script with `python2` or `python3` binaries. We
then condition the execution of tests on whether that wrapper script can
be executed successfully.

The logic that does all of this is not contained in a prerequisite block
though, so the output it generates causes us to break the TAP format.
Refactor the logic to use `test_lazy_prereq()` to fix this.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9835-git-p4-metadata-encoding-python2.sh
t/t9836-git-p4-metadata-encoding-python3.sh