Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Copy the shared config for the cut description
It repeated the sed that cgitrc_copy runs, only to add a repository
after the copy.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0101-index.sh | 5 |
1 file changed, 2 insertions, 3 deletions
diff --git a/tests/t0101-index.sh b/tests/t0101-index.sh index 60bdd46..e227586 100755 --- a/tests/t0101-index.sh +++ b/tests/t0101-index.sh @@ -47,13 +47,12 @@ test_expect_success 'each css and js entry gets a link of its own' ' # The description limit counts bytes, so a cut has to land between # characters rather than leave half of one on the page. test_expect_success 'a cut description keeps whole characters' ' + cgitrc_copy descrc max-repodesc-length=10 && { - echo "max-repodesc-length=10" && - sed "s/^cache-size=.*/cache-size=0/" cgitrc && echo "repo.url=mb" && echo "repo.path=$PWD/repos/foo/.git" && echo "repo.desc=日本語の説明文です" - } >descrc && + } >>descrc && cgit_ok descrc "url=" >tmp && grep ">日本語\.\.\.</a>" tmp ' |
