Diff options
| -rwxr-xr-x | tests/t0301-security.sh | 9 |
1 file changed, 3 insertions, 6 deletions
diff --git a/tests/t0301-security.sh b/tests/t0301-security.sh index 4745c44..136df74 100755 --- a/tests/t0301-security.sh +++ b/tests/t0301-security.sh @@ -250,13 +250,10 @@ test_expect_success 'set up a submodule fixture with a hostile module-link' ' } >modlinkrc ' -test_expect_success 'a surplus conversion does not crash the tree view' ' - cgit_rc modlinkrc "url=modlink/tree/" >tmp && - grep "ls-mod" tmp -' - test_expect_success 'a surplus conversion is shown literally, not filled' ' - grep "href=./m/submod/[0-9a-f]*/%s/%s/" tmp + sub=$(git -C scan/modlink rev-parse HEAD:submod) && + cgit_ok modlinkrc "url=modlink/tree/" >tmp && + test_grep "href=./m/submod/$sub/%s/%s/%s/%s/%s/%s/%s/%s.>submod</a>" tmp ' test_expect_success 'a well-formed module-link still takes name and sha1' ' |
