From: Mark Stapp Date: Wed, 23 Sep 2020 12:48:25 +0000 (-0400) Subject: tests: fix bug in handling of daemons to start X-Git-Tag: base_7.6~519^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bb91e9c03bbb33fe21d904f634569dd0e48babf9;p=mirror%2Ffrr.git 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 --- 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: