mirror of
https://github.com/git/git
synced 2024-09-17 23:41:33 +00:00
t0090: disable GIT_TEST_SPLIT_INDEX for the test checking split index
The test 'switching trees does not invalidate shared index' in 't0090-cache-tree.sh' is about verifying the behaviour of the split index feature, therefore it should be in full control of when index splitting is performed, like all the tests in 't1700-split-index.sh'. Unset GIT_TEST_SPLIT_INDEX for this test to avoid unintended random index splitting. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
acdee9e9e8
commit
456d7cd3a9
|
@ -243,13 +243,16 @@ test_expect_success 'no phantom error when switching trees' '
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'switching trees does not invalidate shared index' '
|
test_expect_success 'switching trees does not invalidate shared index' '
|
||||||
git update-index --split-index &&
|
(
|
||||||
>split &&
|
sane_unset GIT_TEST_SPLIT_INDEX &&
|
||||||
git add split &&
|
git update-index --split-index &&
|
||||||
test-tool dump-split-index .git/index | grep -v ^own >before &&
|
>split &&
|
||||||
git commit -m "as-is" &&
|
git add split &&
|
||||||
test-tool dump-split-index .git/index | grep -v ^own >after &&
|
test-tool dump-split-index .git/index | grep -v ^own >before &&
|
||||||
test_cmp before after
|
git commit -m "as-is" &&
|
||||||
|
test-tool dump-split-index .git/index | grep -v ^own >after &&
|
||||||
|
test_cmp before after
|
||||||
|
)
|
||||||
'
|
'
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|
Loading…
Reference in a new issue