Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Derive the API test's config from the loud one
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0201-filters.sh | 7 |
1 file changed, 1 insertion, 6 deletions
diff --git a/tests/t0201-filters.sh b/tests/t0201-filters.sh index a642120..2e59a1d 100755 --- a/tests/t0201-filters.sh +++ b/tests/t0201-filters.sh @@ -172,12 +172,7 @@ test_expect_success CGIT_LUA 'a lua filter can encode an argument and include a end function filter_close() return 0 end EOF - { - echo "cache-size=0" && - echo "repo.url=foo" && - echo "repo.path=$PWD/repos/foo/.git" && - echo "repo.commit-filter=lua:$PWD/apis.lua" - } >apisrc && + sed "s|loud.lua|apis.lua|" loudrc >apisrc && CGIT_CONFIG="$PWD/apisrc" QUERY_STRING="url=foo/commit" cgit >tmp && grep "a+b%26c|included <b>bold</b>" tmp ' |
