diff options
author | Ben Peart <benpeart@microsoft.com> | 2018-09-18 23:29:36 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-28 18:41:01 (GMT) |
commit | 1f357b045b503873626a72ac97797352a3cd2e87 (patch) | |
tree | 85ad98154995af0d18c4be3a6b2276abe86104d5 /t/test-lib.sh | |
parent | 4cb54d0aa8e2b8de6f6bafd5c2baad0db5ce9dc7 (diff) | |
download | git-1f357b045b503873626a72ac97797352a3cd2e87.zip git-1f357b045b503873626a72ac97797352a3cd2e87.tar.gz git-1f357b045b503873626a72ac97797352a3cd2e87.tar.bz2 |
read-cache: update TEST_GIT_INDEX_VERSION support
Rename TEST_GIT_INDEX_VERSION to GIT_TEST_INDEX_VERSION for consistency with
the other GIT_TEST_ special setups and properly document its use.
Add logic in t/test-lib.sh to give a warning when the old variable is set to
let people know they need to update their environment to use the new
variable.
Signed-off-by: Ben Peart <Ben.Peart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 653688c..e80c84d 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -134,12 +134,6 @@ export EDITOR GIT_TRACE_BARE=1 export GIT_TRACE_BARE -if test -n "${TEST_GIT_INDEX_VERSION:+isset}" -then - GIT_INDEX_VERSION="$TEST_GIT_INDEX_VERSION" - export GIT_INDEX_VERSION -fi - check_var_migration () { old_name=$1 new_name=$2 eval "old_isset=\${${old_name}:+isset}" @@ -159,6 +153,14 @@ check_var_migration () { } check_var_migration GIT_FSMONITOR_TEST GIT_TEST_FSMONITOR +check_var_migration TEST_GIT_INDEX_VERSION GIT_TEST_INDEX_VERSION + +# Use specific version of the index file format +if test -n "${GIT_TEST_INDEX_VERSION:+isset}" +then + GIT_INDEX_VERSION="$GIT_TEST_INDEX_VERSION" + export GIT_INDEX_VERSION +fi # Add libc MALLOC and MALLOC_PERTURB test # only if we are not executing the test with valgrind |