Diff options
| -rwxr-xr-x | tests/t0303-robustness.sh | 10 |
1 file changed, 6 insertions, 4 deletions
diff --git a/tests/t0303-robustness.sh b/tests/t0303-robustness.sh index 34c0f22..f14d9dd 100755 --- a/tests/t0303-robustness.sh +++ b/tests/t0303-robustness.sh @@ -610,11 +610,13 @@ test_expect_success 'a disk readme in the repository directory serves no sibling ' test_expect_success 'a tag pointing at a tag links the inner tag by id' ' - git -C repos/rob -c tag.gpgsign=false tag -a -m outer outer ann && + git -C repos/rob tag -a -m outer outer ann && inner=$(git -C repos/rob rev-parse ann) && - cgit_rc robrc "url=rob/tag/&id=$inner" >tmp && - grep "^Status: 200" tmp && - grep "tagged object" tmp + cgit_ok robrc "url=rob/tag/&h=outer" >tmp && + test_grep "<th scope=.row.>tagged object</th><td class=.oid.><a href=./rob/tag/?h=outer&id=$inner.>tag $inner</a>" tmp && + cgit_ok robrc "url=rob/tag/&h=outer&id=$inner" >tmp && + test_grep "<th scope=.row.>tag name</th><td>$inner " tmp && + test_grep "<div class=.commit-subject.>note</div>" tmp ' test_expect_success 'the dumb transport serves an empty repository' ' |
