summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-01-16 12:40:27 -0800
committerJunio C Hamano <gitster@pobox.com>2026-01-16 12:40:27 -0800
commit5058dc1ec1bfde19f64eda266793ced25d5aec9b (patch)
treea47576b5478d2247d59f41aee3a46916c3d40025
parent8c5f0adf21df709a17866bfa36bb0b1df6344ee6 (diff)
parent6c5c7e7071eeac33139fc7a7c0387bfb981153c2 (diff)
downloadgit-5058dc1ec1bfde19f64eda266793ced25d5aec9b.tar.xz
Merge branch 'ac/t1420-use-more-direct-check'
Test update. * ac/t1420-use-more-direct-check: t1420: modernize the lost-found test
-rwxr-xr-xt/t1420-lost-found.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/t/t1420-lost-found.sh b/t/t1420-lost-found.sh
index 2fb2f44f02..926c6d63e3 100755
--- a/t/t1420-lost-found.sh
+++ b/t/t1420-lost-found.sh
@@ -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