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:
Junio C Hamano 2026-01-08 16:40:38 +09:00
commit f969c26ae4

View File

@ -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