break out if check_reply fails

it's not a problem when we have only one check_reply at then end,
since $? is kept across function boundaries, but when we have multiple
checks we need to quit on the first error.
This commit is contained in:
Omar Polo 2022-03-26 10:56:06 +00:00
parent 894e998423
commit 91971201e5
1 changed files with 3 additions and 3 deletions

View File

@ -375,11 +375,11 @@ test_include_mime() {
setup_simple_test "types { include '$PWD/example.mime.types' }" ""
fetch_hdr /
check_reply '20 text/gemini'
check_reply '20 text/gemini' || return 1
fetch_hdr /test.m3u8
check_reply '20 application/vnd.apple.mpegurl'
check_reply '20 application/vnd.apple.mpegurl' || return 1
fetch_hdr /foo.1
check_reply '20 text/x-mandoc'
check_reply '20 text/x-mandoc' || return 1
}