From: Donald Sharp Date: Fri, 7 Mar 2025 23:39:33 +0000 (-0500) Subject: tests: Have zebra startup look for the zserv.api socket X-Git-Tag: docker/10.3.0~2^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=04bdd8d53983bbe97794b1b5860ee6c5a0578c3a;p=matthieu%2Ffrr.git tests: Have zebra startup look for the zserv.api socket Ensure that the zserv.api socket is actually up and running before moving onto other daemons after zebra. Signed-off-by: Donald Sharp (cherry picked from commit 009f42dd5bd02eb5ee0bd9852704357c6bc7aaa1) --- diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 301f245b17..07033698d0 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1960,7 +1960,13 @@ class Router(Node): ) else: binary = os.path.join(self.daemondir, daemon) - check_daemon_files.extend([runbase + ".pid", runbase + ".vty"]) + if daemon == "zebra": + zapi_base = "/var/run/{}/zserv.api".format(self.routertype) + check_daemon_files.extend( + [runbase + ".pid", runbase + ".vty", zapi_base] + ) + else: + check_daemon_files.extend([runbase + ".pid", runbase + ".vty"]) cmdenv = "ASAN_OPTIONS=" if asan_abort: