diff options
author | Omar Polo <op@omarpolo.com> | 2022-03-26 10:56:06 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2022-03-26 10:56:06 +0000 |
commit | 91971201e545529098ac2b9bc374a383a637e28f (patch) | |
tree | 584eff610037bbe5a24fa0a1c8b8e4d6903f2a9f | |
parent | 894e998423b80574490efa9c50ad82adfa874b47 (diff) |
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.
-rw-r--r-- | regress/tests.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/tests.sh b/regress/tests.sh index c736a40..0ee543b 100644 --- a/regress/tests.sh +++ b/regress/tests.sh @@ -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 } |