the repository which powers this website
tests: allow to skip git version tests
This allows to run tests non-tagged git checkout or when bisecting. Signed-off-by: Christian Hesse <[email protected]>
Christian Hesse 2020-01-14
parent fa146cc · commit 5e49023
-rwxr-xr-xtests/t0001-validate-git-versions.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/t0001-validate-git-versions.sh b/tests/t0001-validate-git-versions.sh
index 3200f311..73bd32f5 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