diff options
author | Christian Hesse | 2020-01-13 21:04:46 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2020-01-13 15:17:19 -0500 |
commit | 5e49023b01e5dfaacfc89199159e53c0c6e41331 (patch) | |
tree | 2e8bfebb57281618629a44270caed7aaef4fbc65 /tests | |
parent | fa146ccabdd0de746a7076f0630af550e43d9088 (diff) | |
download | cgit-5e49023b01e5dfaacfc89199159e53c0c6e41331.tar.gz cgit-5e49023b01e5dfaacfc89199159e53c0c6e41331.tar.bz2 cgit-5e49023b01e5dfaacfc89199159e53c0c6e41331.zip |
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>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/t0001-validate-git-versions.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | if [ "${CGIT_TEST_NO_GIT_VERSION}" = "YesPlease" ]; then | ||
4 | exit 0 | ||
5 | fi | ||
6 | |||
3 | test_description='Check Git version is correct' | 7 | test_description='Check Git version is correct' |
4 | CGIT_TEST_NO_CREATE_REPOS=YesPlease | 8 | CGIT_TEST_NO_CREATE_REPOS=YesPlease |
5 | . ./setup.sh | 9 | . ./setup.sh |