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/t0503-link-commits.sh')
| -rwxr-xr-x | tests/t0503-link-commits.sh | 9 |
1 file changed, 5 insertions, 4 deletions
diff --git a/tests/t0503-link-commits.sh b/tests/t0503-link-commits.sh index d38093a..06f54dc 100755 --- a/tests/t0503-link-commits.sh +++ b/tests/t0503-link-commits.sh @@ -39,13 +39,14 @@ test_expect_success 'point cgit at it through the commit filter' ' ' test_expect_success CGIT_LUA 'the issue mark stays text on the commit page' ' - cgit_url "linky/commit/" >tmp && - grep "fix #123 near" tmp && - ! grep "bugs.example.com" tmp + cgit_ok_url "linky/commit/" >tmp && + test_grep "fix #123 near" tmp && + test_grep ! "bugs.example.com" tmp ' test_expect_success CGIT_LUA 'the object name links to its own page' ' - grep "id=deadbeefcafe1234.>deadbeefcafe1234</a>" tmp + cgit_ok_url "linky/commit/" >tmp && + test_grep "id=deadbeefcafe1234.>deadbeefcafe1234</a>" tmp ' test_done |
