t/helper: merge test-index-version into test-tool
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
7c18cbd562
commit
cc6f663dea
@ -33,7 +33,7 @@ test_expect_success 'setup' '
|
||||
'
|
||||
|
||||
test_expect_success 'index is at version 2' '
|
||||
test "$(test-index-version < .git/index)" = 2
|
||||
test "$(test-tool index-version < .git/index)" = 2
|
||||
'
|
||||
|
||||
test_expect_success 'update-index --skip-worktree' '
|
||||
@ -42,7 +42,7 @@ test_expect_success 'update-index --skip-worktree' '
|
||||
'
|
||||
|
||||
test_expect_success 'index is at version 3 after having some skip-worktree entries' '
|
||||
test "$(test-index-version < .git/index)" = 3
|
||||
test "$(test-tool index-version < .git/index)" = 3
|
||||
'
|
||||
|
||||
test_expect_success 'ls-files -t' '
|
||||
@ -55,7 +55,7 @@ test_expect_success 'update-index --no-skip-worktree' '
|
||||
'
|
||||
|
||||
test_expect_success 'index version is back to 2 when there is no skip-worktree entry' '
|
||||
test "$(test-index-version < .git/index)" = 2
|
||||
test "$(test-tool index-version < .git/index)" = 2
|
||||
'
|
||||
|
||||
test_done
|
||||
|
Reference in New Issue
Block a user