Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Write the remaining config copies with cgitrc_copy
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0103-log.sh | 10 | |
| -rwxr-xr-x | tests/t0109-patch.sh | 5 |
2 files changed, 3 insertions, 12 deletions
diff --git a/tests/t0103-log.sh b/tests/t0103-log.sh index b789ca4..9796394 100755 --- a/tests/t0103-log.sh +++ b/tests/t0103-log.sh @@ -86,19 +86,13 @@ test_expect_success 'the pager of a followed log keeps the name followed' ' test_expect_success 'a cut subject keeps whole characters' ' git -C repos/foo commit --allow-empty -m "日本語の説明文です日本語の説明文です" && - { - echo "max-message-length=20" && - sed "s/^cache-size=.*/cache-size=0/" cgitrc - } >subjectrc && + cgitrc_copy subjectrc max-message-length=20 && cgit_rc subjectrc "url=foo/log/" >tmp && grep ">日本語の説\.\.\.</a>" tmp ' test_expect_success 'the log draws the commit graph when enabled' ' - { - echo "enable-commit-graph=1" && - sed "s/^cache-size=.*/cache-size=0/" cgitrc - } >graphrc && + cgitrc_copy graphrc enable-commit-graph=1 && cgit_rc graphrc "url=foo/log/" >tmp && grep "class=.commitgraph." tmp && grep "<th scope=.col. aria-label=.Graph.></th>" tmp diff --git a/tests/t0109-patch.sh b/tests/t0109-patch.sh index 18ed501..bc942fe 100755 --- a/tests/t0109-patch.sh +++ b/tests/t0109-patch.sh @@ -65,10 +65,7 @@ test_expect_success 'max-patch-count bounds a patch range' ' ' test_expect_success 'the signature names the version when asked to' ' - { - echo "enable-version-info=1" && - sed "s/^cache-size=.*/cache-size=0/" cgitrc - } >versionrc && + cgitrc_copy versionrc enable-version-info=1 && cgit_rc versionrc "url=foo/patch" >tmp && check_cgit_signature "$CGIT_VERSION" ' |
