Diff options
| -rwxr-xr-x | 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 && |
