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 <chopps@labn.net>
This commit is contained in:
Christian Hopps 2023-04-17 01:34:46 -04:00
parent e01ecbe194
commit b70b22af95

View file

@ -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 "