]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTESTS: startup: -conf-OK requires -V with current VTest
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 13 Nov 2023 13:38:36 +0000 (14:38 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 13 Nov 2023 13:57:26 +0000 (14:57 +0100)
Current version of VTest tests the output of "haproxy -c" instead of the
return code. Since we don't output anymore when the configuration is
valid, this broke the test. (a06f621).

This fixes the issue by adding the -V when doing a -conf-OK. But this
must fixed in VTest.

reg-tests/startup/default_rules.vtc

index cd86f74143c755c2f987dfe48ad285c4d5636e9c..1cbbfa935650faf2f0903599a07c004110939023 100644 (file)
@@ -127,7 +127,7 @@ haproxy h13 -conf-BAD {} {
         bind "fd@${feh10}"
 }
 
-haproxy h14 -conf-OK {
+haproxy h14 -arg -V -conf-OK {
     defaults tcp
         tcp-response inspect-delay 5s
         tcp-response content accept
@@ -162,7 +162,7 @@ haproxy h16 -conf-BAD {} {
         server www 127.0.0.1:80
 }
 
-haproxy h17 -conf-OK {
+haproxy h17 -arg -V -conf-OK {
     defaults common
         mode http