From 8c2d8d04f0154da31f3d64e52669fe835929273c Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 9 Feb 2022 11:29:39 +0000 Subject: t1410: use test-tool ref-store to inspect reflogs This makes the test compatible with reftable (it doesn't pass yet for other reasons, unfortunately) Signed-off-by: Han-Wen Nienhuys Signed-off-by: Junio C Hamano --- t/t1410-reflog.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh index d7ddf7612d..36f6693d9d 100755 --- a/t/t1410-reflog.sh +++ b/t/t1410-reflog.sh @@ -418,7 +418,8 @@ test_expect_success 'expire with multiple worktrees' ' test_commit -C link-wt foobar && test_tick && git reflog expire --verbose --all --expire=$test_tick && - test_must_be_empty .git/worktrees/link-wt/logs/HEAD + test-tool ref-store worktree:link-wt for-each-reflog-ent HEAD >actual && + test_must_be_empty actual ) ' -- cgit v1.2.3 From bcdff626ee7ef7e5a643c381cf6f696b03e33649 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 9 Feb 2022 11:29:40 +0000 Subject: t1410: mark bufsize boundary test as REFFILES This test fiddles with files under .git/logs to recreate a condition that is unlikely to warrant special attention under reftable, as reflog blocks are zlib compressed. Signed-off-by: Han-Wen Nienhuys Signed-off-by: Junio C Hamano --- t/t1410-reflog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh index 36f6693d9d..68f69bb543 100755 --- a/t/t1410-reflog.sh +++ b/t/t1410-reflog.sh @@ -341,7 +341,7 @@ test_expect_success 'stale dirs do not cause d/f conflicts (reflogs off)' ' # Each line is 114 characters, so we need 75 to still have a few before the # last 8K. The 89-character padding on the final entry lines up our # newline exactly. -test_expect_success SHA1 'parsing reverse reflogs at BUFSIZ boundaries' ' +test_expect_success REFFILES,SHA1 'parsing reverse reflogs at BUFSIZ boundaries' ' git checkout -b reflogskip && zf=$(test_oid zero_2) && ident="abc 0000000001 +0000" && -- cgit v1.2.3