Diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0003-cache.sh | 15 |
1 file changed, 9 insertions, 6 deletions
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 "<meta name=.description." tmp + cgit_ok scanrc "url=" >/dev/null && + rc=$(ls cache5/rc-*) && + test_grep "^repo.url=one$" "$rc" && + test_grep ! "^repo.desc=" "$rc" && + cgit_ok scanrc "url=" >tmp && + test_grep "\[no description\]" tmp && + cgit_ok scanrc "url=one/" >tmp && + test_grep "data-page=.summary. data-repo=.one." tmp && + test_grep ! "<meta name=.description." tmp ' # The list is read back under the global settings, so what a repository set |
