projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
316ea7e
)
REGTEST: make check_condition.vtc fail as soon as possible
author
Willy Tarreau
<w@1wt.eu>
Sat, 17 Jul 2021 08:54:46 +0000
(10:54 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Sat, 17 Jul 2021 08:56:32 +0000
(10:56 +0200)
The test consists in a sequence of shell commands, but the shell is not
necessarily started with strict errors enabled, so only the last command
provides the verdict. Let's add "set -e" to make it fail on the first
test that fails.
reg-tests/startup/check_condition.vtc
patch
|
blob
|
history
diff --git
a/reg-tests/startup/check_condition.vtc
b/reg-tests/startup/check_condition.vtc
index
d56d73f
..
96e9772
100644
(file)
--- a/
reg-tests/startup/check_condition.vtc
+++ b/
reg-tests/startup/check_condition.vtc
@@
-3,6
+3,7
@@
varnishtest "Tests the -cc argument"
feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
shell {
+ set -e
$HAPROXY_PROGRAM -cc "version_atleast(2.4)"
! $HAPROXY_PROGRAM -cc "version_atleast(1024)"