From 160910ec08653335d61e8fe05a50a2fde8ed85fd Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Thu, 14 Jul 2022 12:04:15 -0400 Subject: [PATCH] tests: analyze: handle list of strings being returned Signed-off-by: Christian Hopps --- tests/topotests/analyze.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/topotests/analyze.py b/tests/topotests/analyze.py index bdb2e56ee1..108bd1b49a 100755 --- a/tests/topotests/analyze.py +++ b/tests/topotests/analyze.py @@ -115,6 +115,9 @@ def dump_testcase(testcase): for key, val in testcase.items(): if isinstance(val, str) or isinstance(val, float) or isinstance(val, int): s += "{}: {}\n".format(key, val) + elif isinstance(val, list): + for k2, v2 in enumerate(val): + s += "{}: {}\n".format(k2, v2) else: for k2, v2 in val.items(): s += "{}: {}\n".format(k2, v2) -- 2.39.5