mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-27 21:11:51 +02:00
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:
parent
894e998423
commit
91971201e5
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user