From 34a14e8e77a2960354b6a6e334434e32de1bedb7 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 14:15:32 -0700 Subject: Derive the API test's config from the loud one --- 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 bold" tmp ' -- cgit