From: Christian Hesse Date: Mon, 13 Jan 2020 20:04:46 +0000 (+0100) Subject: tests: allow to skip git version tests X-Git-Tag: v1.2.3~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e49023b01e5dfaacfc89199159e53c0c6e41331;p=cgit tests: allow to skip git version tests This allows to run tests non-tagged git checkout or when bisecting. Signed-off-by: Christian Hesse --- diff --git a/tests/t0001-validate-git-versions.sh b/tests/t0001-validate-git-versions.sh index 3200f31..73bd32f 100755 --- a/tests/t0001-validate-git-versions.sh +++ b/tests/t0001-validate-git-versions.sh @@ -1,5 +1,9 @@ #!/bin/sh +if [ "${CGIT_TEST_NO_GIT_VERSION}" = "YesPlease" ]; then + exit 0 +fi + test_description='Check Git version is correct' CGIT_TEST_NO_CREATE_REPOS=YesPlease . ./setup.sh