summaryrefslogtreecommitdiffstats
path: root/tests/topotests/lib/topogen.py
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2021-07-09 11:22:51 +0200
committerChristian Hopps <chopps@labn.net>2021-07-14 21:55:40 +0200
commit0ba1d257bedebcd01dffa4dbfb406bc3a2243d60 (patch)
treef0432916f5f9a6e6742fe2cc7623a348b722d17a /tests/topotests/lib/topogen.py
parentMerge pull request #8997 from donaldsharp/opaque_length (diff)
downloadfrr-0ba1d257bedebcd01dffa4dbfb406bc3a2243d60.tar.xz
frr-0ba1d257bedebcd01dffa4dbfb406bc3a2243d60.zip
tests: add triage features: strace, asan-abort, docker exec
TMUX and Screen support when running topotests inside docker. This allows the gdb, shell and vtysh features to correctly work even when running the tests inside docker. Add options: --asan-abort :: aborts the process on ASAN errors --strace-daemons :: strace some or all daemons Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/lib/topogen.py')
-rw-r--r--tests/topotests/lib/topogen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py
index ade593350..b99887811 100644
--- a/tests/topotests/lib/topogen.py
+++ b/tests/topotests/lib/topogen.py
@@ -801,8 +801,8 @@ class TopoRouter(TopoGear):
try:
return json.loads(output)
- except ValueError:
- logger.warning("vtysh_cmd: failed to convert json output")
+ except ValueError as error:
+ logger.warning("vtysh_cmd: %s: failed to convert json output: %s: %s", self.name, str(output), str(error))
return {}
def vtysh_multicmd(self, commands, pretty_output=True, daemon=None):