mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 02:22:48 +00:00
tests: analyze: handle list of strings being returned
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
1623dc4c9c
commit
160910ec08
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user