From 894fcd9b8c982146d6fd38d3a1ec77b89267b22e Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 27 Aug 2026 02:44:02 -1000 Subject: Slim the serve test to what it actually needs --- tests/t0401-serve.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/t0401-serve.sh b/tests/t0401-serve.sh index 513c33a..f7244a2 100755 --- a/tests/t0401-serve.sh +++ b/tests/t0401-serve.sh @@ -4,14 +4,18 @@ # hands its output back over HTTP, tells the CGI headers from the body. That # split once keyed on the wrong blank line and swallowed the document head, # which left a page that still validated but arrived with no stylesheet and no -# chrome. The cases live in serve-split-check.py beside this file. +# chrome. The cases live in serve-split-check.py beside this file, and nothing +# here touches a repository, so the fixtures stay unbuilt. test_description='Check the preview server splits CGI output correctly' +CGIT_TEST_NO_CREATE_REPOS=YesPlease . ./setup.sh -if ! command -v python3 >/dev/null 2>&1; then +command -v python3 >/dev/null 2>&1 || { + skip_all='Skipping preview server tests: python3 not found' test_done -fi + exit +} test_expect_success 'CGI headers and body are split at the first blank line' ' python3 "$PWD/../serve-split-check.py" "$PWD/../.." -- cgit v2.8.0