Diff options
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 |
