]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: Be less Linux specific with a syslog regex.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 20 Dec 2018 08:55:43 +0000 (09:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 20 Dec 2018 10:00:17 +0000 (11:00 +0100)
This patch makes at least this test pass on FreeBSD systems.
The regex to be matched with syslog message was too much Linux specific.

reg-tests/checks/s00003.vtc

index b57b965f4de93ffcff92e0bc1d0b0cda602f5a0a..6ce10b0e2e3697adeb4074ce7f777aaf3a6a8da5 100644 (file)
@@ -27,7 +27,7 @@ syslog S3 -level notice {
     recv
     expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Proxy be3 started"
     recv
-    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be3/srv3 failed, reason: Layer4 connection problem, info: \"General socket error \\(Network is unreachable\\)\", check duration: [[:digit:]]+ms, status: 0/1 DOWN."
+    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be3/srv3 failed, reason: Layer4 .* check duration: [[:digit:]]+ms, status: 0/1 DOWN."
 } -start
 
 syslog S4 -level notice {