use the legacy style in the tests for now

This commit is contained in:
Omar Polo 2023-08-03 22:37:05 +00:00
parent f736c9579c
commit 56054fe197
1 changed files with 6 additions and 4 deletions

View File

@ -380,15 +380,17 @@ test_include_mime() {
test_log_file() {
rm -f log log.edited
setup_simple_test 'log access "'$PWD'/log"' ''
setup_simple_test '
log access "'$PWD'/log"
log style legacy'
fetch_hdr /
check_reply '20 text/gemini'
# remove the date and ip
awk '{$1 = ""; $2 = ""; print substr($0, 3)}' log > log.edited
# remove the ip
awk '{$1 = ""; print substr($0, 2)}' log > log.edited
printf '%s\n' '- localhost gemini://localhost/ 0 0 20 text/gemini' \
printf '%s\n' 'GET gemini://localhost/ 20 text/gemini' \
| cmp -s - log.edited
if [ $? -ne 0 ]; then
# keep the log for post-mortem analysis