From b70b22af9561d0f1ac18d24dce709ab3c20c0bad Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Mon, 17 Apr 2023 01:34:46 -0400 Subject: [PATCH] tests: quick fix for --gdb-daemons=DAEMONLIST not working When launching the daemons under gdb it takes a bit for them to come up, the currently code only looks for pid files to determine if the daemon is running. This test is no good as these files are left around by previous runs. For now do a simple sleep when debugging with gdb to get things working. Signed-off-by: Christian Hopps --- tests/topotests/lib/topotest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 86a7f2000f..ef04d59e29 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1840,6 +1840,8 @@ class Router(Node): logger.info( "%s: %s %s launched in gdb window", self, self.routertype, daemon ) + # Need better check for daemons running. + time.sleep(5) else: if daemon != "snmpd": cmdopt += " -d "