aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/test.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-01-25 02:36:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-01-25 02:36:46 +0300
commit8d71b8b95ee96d3727ddac9c270977c6f90732de (patch)
treee4b255483253e2247986efcbf90358947ee5d951 /test/test.sh
parentdebian: 1.1.0-1 (diff)
parentworkflows/ci: run tests as root also (diff)
downloadlinux-status-8d71b8b95ee96d3727ddac9c270977c6f90732de.tar.gz
linux-status-8d71b8b95ee96d3727ddac9c270977c6f90732de.zip
Merge tag 'v1.2' into debian
Diffstat (limited to '')
-rwxr-xr-xtest/test.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test.sh b/test/test.sh
index db44d5f..77a15e2 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -73,11 +73,10 @@ run_curl() {
local url="$1"
curl \
--silent --show-error \
- --fail \
--dump-header "$curl_header_file" \
--output "$curl_output_file" \
--connect-timeout 3 \
- -- "http://localhost:$server_port$url"
+ -- "http://localhost:$server_port$url" || true
}
curl_check_status() {
@@ -95,6 +94,11 @@ curl_check_status() {
dump "Actual HTTP response: $actual" >&2
dump "Expected: $expected" >&2
+
+ dump 'HTTP headers:' >&2
+ cat -- "$curl_header_file" >&2
+ dump 'HTTP response:' >&2
+ cat -- "$curl_output_file" >&2
return 1
}