diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2025-03-07 18:39:33 -0500 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2025-03-09 03:53:04 +0000 |
| commit | 04bdd8d53983bbe97794b1b5860ee6c5a0578c3a (patch) | |
| tree | 9b8bcb5bfb6dcec26c36038d75c05f55c348e9c6 | |
| parent | 6122c87b377d1da14ee31b2136fc718fbb9ae434 (diff) | |
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 <sharpd@nvidia.com>
(cherry picked from commit 009f42dd5bd02eb5ee0bd9852704357c6bc7aaa1)
| -rw-r--r-- | tests/topotests/lib/topotest.py | 8 |
1 files changed, 7 insertions, 1 deletions
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: |
