]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: lua/b00003: Specify the HAProxy pid when the command ss is executed
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Apr 2019 13:39:50 +0000 (15:39 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Apr 2019 13:57:00 +0000 (15:57 +0200)
This avoids confusions with any other haproxy process.

reg-tests/lua/b00003.vtc

index f58229bc1de9a483c9a209391d2e5bdc606d5ab9..3fd70ebc646a2eb72c52a59dbf08e04cb59e411a 100644 (file)
@@ -48,6 +48,6 @@ client c1 -connect ${h1_frt_sock} -repeat 100  {
 syslog Slog -wait
 
 shell {
-    ss -pt | grep CLOSE-WAIT.*haproxy
+    ss -pt | grep CLOSE-WAIT.*haproxy.*pid=${h1_pid}
     exit $((!$?))
 }