summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/topotest.py
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2023-04-17 01:34:46 -0400
committerChristian Hopps <chopps@labn.net>2023-04-17 02:15:32 -0400
commitb70b22af9561d0f1ac18d24dce709ab3c20c0bad (patch)
treef5ab5a4974d6068dfe441417f78ac672a1b6813c /tests/topotests/lib/topotest.py
parente01ecbe194766ceb7d11cd993a02d629fbbf11fa (diff)
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>
Diffstat (limited to 'tests/topotests/lib/topotest.py')
-rw-r--r--tests/topotests/lib/topotest.py2
1 files changed, 2 insertions, 0 deletions
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 "