From 4092a97a4067ac8ba6e7c48a6db3ff15f7b7a603 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 18:53:00 -1000 Subject: Give the repository open test a config of its own It read the config the 404 test had written, so it could not run alone with --run. --- tests/t0205-config.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/t0205-config.sh b/tests/t0205-config.sh index 5975303..800f32c 100755 --- a/tests/t0205-config.sh +++ b/tests/t0205-config.sh @@ -303,9 +303,12 @@ test_expect_success 'a max-stats that names no period is reported' ' ' # The error page names the repository alone, so the log gets the path that -# would not open, once for the request. +# would not open, once for the request. The cache stays on, since a fill +# rendered a second time is how the path could reach the log twice. test_expect_success 'a repository that will not open is logged with its path' ' - cgit_rc gonerc "url=gone/log/" >tmp 2>err && + mkdir unopened-cache && + cgitrc_repo unopenedrc gone cache-size=1021 "cache-root=$PWD/unopened-cache" "repo.path=$PWD/no/such/repo/.git" && + cgit_rc unopenedrc "url=gone/log/" >tmp 2>err && grep "^Status: 404 Not Found" tmp && test_grep -F "Unable to open repository gone at $PWD/no/such/repo/.git: No such file or directory" err && test_line_count = 1 err && -- cgit 2.12.1