diff options
author | Christian Hopps <chopps@labn.net> | 2021-07-09 11:22:51 +0200 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2021-07-14 21:55:40 +0200 |
commit | 0ba1d257bedebcd01dffa4dbfb406bc3a2243d60 (patch) | |
tree | f0432916f5f9a6e6742fe2cc7623a348b722d17a /tests/topotests/lib/topogen.py | |
parent | Merge pull request #8997 from donaldsharp/opaque_length (diff) | |
download | frr-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.py | 4 |
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): |