mirror of
https://github.com/git/git.git
synced 2026-01-11 13:23:12 +09:00
Merge branch 'ac/t1420-use-more-direct-check' into jch
Test update. * ac/t1420-use-more-direct-check: t1420: modernize the lost-found test
This commit is contained in:
commit
f969c26ae4
@ -28,9 +28,12 @@ test_expect_success 'lost and found something' '
|
||||
test_tick &&
|
||||
git reset --hard HEAD^ &&
|
||||
git fsck --lost-found &&
|
||||
test 2 = $(ls .git/lost-found/*/* | wc -l) &&
|
||||
test -f .git/lost-found/commit/$(cat lost-commit) &&
|
||||
test -f .git/lost-found/other/$(cat lost-other)
|
||||
ls .git/lost-found/*/* >actual &&
|
||||
cat >expect <<-EOF &&
|
||||
.git/lost-found/commit/$(cat lost-commit)
|
||||
.git/lost-found/other/$(cat lost-other)
|
||||
EOF
|
||||
test_cmp expect actual
|
||||
'
|
||||
|
||||
test_done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user