From c388b725fb6aa3551c40046a98156d2bbf0e979f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 09:16:37 -1000 Subject: Look for the placeholder in a list that exists With no list the glob stayed unmatched, grep failed on it and the negated check passed. The meta check had no proof that the summary had rendered either. --- tests/t0003-cache.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/t0003-cache.sh b/tests/t0003-cache.sh index acc9496..232f6ff 100755 --- a/tests/t0003-cache.sh +++ b/tests/t0003-cache.sh @@ -675,12 +675,15 @@ test_expect_success 'a negative cache-scan-ttl never expires the list' ' # without one, so its pages do not describe themselves with the placeholder. test_expect_success 'a cached scan leaves the description placeholder out' ' rm -rf cache5 && mkdir cache5 && - cgit_rc scanrc "url=" >/dev/null && - ! grep "^repo.desc=" cache5/rc-* && - cgit_rc scanrc "url=" >tmp && - grep "\[no description\]" tmp && - cgit_rc scanrc "url=one/" >tmp && - ! grep "tmp && + test_grep "data-page=.summary. data-repo=.one." tmp && + test_grep ! "