tests: allow to skip git version tests

This allows to run tests non-tagged git checkout or when bisecting.

Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Christian Hesse 2020-01-13 21:04:46 +01:00 committed by Jason A. Donenfeld
parent fa146ccabd
commit 5e49023b01

View File

@ -1,5 +1,9 @@
#!/bin/sh #!/bin/sh
if [ "${CGIT_TEST_NO_GIT_VERSION}" = "YesPlease" ]; then
exit 0
fi
test_description='Check Git version is correct' test_description='Check Git version is correct'
CGIT_TEST_NO_CREATE_REPOS=YesPlease CGIT_TEST_NO_CREATE_REPOS=YesPlease
. ./setup.sh . ./setup.sh