From d18712f12b8f870d070ca1a09479784abe5ed51a Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 12:53:27 -1000 Subject: Hold the tag tests to a working page The tag requests passed on any answer short of a crash, and the title test read a page the cache kept from an earlier test. The id pattern also matched an empty id, the date row was checked only for its opening tag, and the lightweight tag was never shown to lack a date row. Two tests read a page an earlier test wrote. --- tests/t0113-tag.sh | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/tests/t0113-tag.sh b/tests/t0113-tag.sh index 19b2283..2a95a36 100755 --- a/tests/t0113-tag.sh +++ b/tests/t0113-tag.sh @@ -3,7 +3,7 @@ # The tag page. An annotated tag gets a table of its name, date, tagger, the # object it points at under its full id, and the downloads, and its message # follows with no blank line between subject and body. A lightweight tag gets -# the shorter table. +# the shorter table. The tags the first test makes serve the rest. test_description='Check content on tag page' . ./setup.sh @@ -19,16 +19,17 @@ two lines." v1.0 && ) ' -test_expect_success 'generate foo/tag/?h=v1.0' 'cgit_url "foo/tag/&h=v1.0" >tmp' - test_expect_success 'find the name, date and tagger rows' ' - grep "tag namev1.0 ([0-9a-f]*)" tmp && - grep "tag date