From 035394e3836fb981c7b0d3e4b72ca745fb56e0ad Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 10:04:02 -1000 Subject: Check the whole page in the extension tests A page that died part way through, or logged an error, passed as long as the text grepped for came before the failure. Four tests also read the page an earlier test had fetched, so none of them could run alone. --- tests/t0504-email-avatar.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/t0504-email-avatar.sh') diff --git a/tests/t0504-email-avatar.sh b/tests/t0504-email-avatar.sh index ccda85a..b584f3e 100755 --- a/tests/t0504-email-avatar.sh +++ b/tests/t0504-email-avatar.sh @@ -66,9 +66,9 @@ test_expect_success CGIT_LUA 'point cgit at it through the email filter' ' # The address behind the hash is author@example.com, the identity the test # library commits under. test_expect_success CGIT_LUA_OSSL 'the commit page draws the author icon' ' - cgit_url "avatar/commit/" >tmp && - grep "gravatar.com/avatar/b0eda69977c26118feff17875d53376006568bcbcde5ca0c916d01f05c281436" tmp && - grep "loading=.lazy." tmp + cgit_ok_url "avatar/commit/" >tmp && + test_grep "gravatar.com/avatar/b0eda69977c26118feff17875d53376006568bcbcde5ca0c916d01f05c281436" tmp && + test_grep "loading=.lazy." tmp ' test_expect_success CGIT_LUA_NOOSSL 'without luaossl the page keeps the name alone' ' -- cgit 2.12.1