]> git.cameronkatri.com Git - cgit.git/commitdiff
tests: allow to skip git version tests
authorChristian Hesse <mail@eworm.de>
Mon, 13 Jan 2020 20:04:46 +0000 (21:04 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 13 Jan 2020 20:17:19 +0000 (15:17 -0500)
This allows to run tests non-tagged git checkout or when bisecting.

Signed-off-by: Christian Hesse <mail@eworm.de>
tests/t0001-validate-git-versions.sh

index 3200f31101a0c2c94963a24291bd176a251ab4bd..73bd32f5c9ead751037b612a575e0bef45f0a711 100755 (executable)
@@ -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