diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-09-23 08:48:25 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-09-23 08:48:25 -0400 |
| commit | bb91e9c03bbb33fe21d904f634569dd0e48babf9 (patch) | |
| tree | cfb6ff52b2e537441c1878f92104c08e04070447 /tests/topotests/lib/topotest.py | |
| parent | aa178efd49d2cbf0ea9790acb7e318de8f97cc80 (diff) | |
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 <mjs@voltanet.io>
Diffstat (limited to 'tests/topotests/lib/topotest.py')
| -rw-r--r-- | tests/topotests/lib/topotest.py | 4 |
1 files changed, 3 insertions, 1 deletions
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: |
