From 98ec67fdd966b7f04f798e272e0c462b497b5bf2 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Wed, 23 Sep 2020 08:48:25 -0400 Subject: [PATCH] tests: fix bug in handling of daemons to start Ensure the list of daemons to start is either the one specified by a caller or the default one from the router configuration. Signed-off-by: Mark Stapp --- tests/topotests/lib/topotest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index e34d1cf0be..dbc76e56ff 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -1340,7 +1340,9 @@ class Router(Node): # If `daemons` was specified then some upper API called us with # specific daemons, otherwise just use our own configuration. daemons_list = [] - if daemons is None: + if daemons != None: + daemons_list = daemons + else: # Append all daemons configured. for daemon in self.daemons: if self.daemons[daemon] == 1: -- 2.39.5