Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
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.
Diffstat (limited to 'tests/t0506-link-trailers.sh')
| -rwxr-xr-x | tests/t0506-link-trailers.sh | 10 |
1 file changed, 6 insertions, 4 deletions
diff --git a/tests/t0506-link-trailers.sh b/tests/t0506-link-trailers.sh index 03db63a..42c65fd 100755 --- a/tests/t0506-link-trailers.sh +++ b/tests/t0506-link-trailers.sh @@ -46,16 +46,18 @@ test_expect_success 'point cgit at it through the trailer filter' ' ' test_expect_success CGIT_LUA 'the Fixes object name links to its commit page' ' - cgit_url "linky/commit/" >tmp && - grep "<th scope=.row.>Fixes</th><td><a href=....id=1234567.>1234567</a> (.earlier.)</td>" tmp + cgit_ok_url "linky/commit/" >tmp && + test_grep "<th scope=.row.>Fixes</th><td><a href=....id=1234567.>1234567</a> (.earlier.)</td>" tmp ' test_expect_success CGIT_LUA 'the bare URL links to itself' ' - grep "<a href=.https://example.com/?a=1&b=2.>https://example.com/?a=1&b=2</a>" tmp + cgit_ok_url "linky/commit/" >tmp && + test_grep "<a href=.https://example.com/?a=1&b=2.>https://example.com/?a=1&b=2</a>" tmp ' test_expect_success CGIT_LUA 'the Closes mark stays text' ' - grep "<th scope=.row.>Closes</th><td>#45</td>" tmp + cgit_ok_url "linky/commit/" >tmp && + test_grep "<th scope=.row.>Closes</th><td>#45</td>" tmp ' test_done |
