aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-02-14 09:00:29 +0100
committerTibor Frank <tifrank@cisco.com>2020-02-14 09:00:29 +0100
commitebe8b93eff2b7860ee2a506b18661aa2c1930390 (patch)
treeafd40f521b61763565c44d2b457b7ed3c2974788 /resources/tools
parentc81eac1e36b37c78f144a4218c231da846a908f6 (diff)
Report: Detailed test results table 2
Change-Id: Ica89d51b5590ba6ceaedb7a4d244abee78f30755 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools')
-rw-r--r--resources/tools/presentation/generator_tables.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index b7f267847c..15ed2c505b 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -321,7 +321,8 @@ def table_details(table, input_data):
if len(col_data) > 30:
col_data_lst = col_data.split(u"-")
half = int(len(col_data_lst) / 2)
- col_data = f"{u'-'.join(col_data_lst[:half])}\n" \
+ col_data = f"{u'-'.join(col_data_lst[:half])}" \
+ f"- |br| " \
f"{u'-'.join(col_data_lst[half:])}"
col_data = f" |prein| {col_data} |preout| "
elif column[u"data"].split(u" ")[1] in (u"msg", ):
@@ -400,9 +401,17 @@ def table_merged_details(table, input_data):
col_data = col_data.replace(
u"No Data", u"Not Captured "
)
- if column[u"data"].split(u" ")[1] in (u"name", u"msg"):
+ if column[u"data"].split(u" ")[1] in (u"name", ):
+ if len(col_data) > 30:
+ col_data_lst = col_data.split(u"-")
+ half = int(len(col_data_lst) / 2)
+ col_data = f"{u'-'.join(col_data_lst[:half])}" \
+ f"- |br| " \
+ f"{u'-'.join(col_data_lst[half:])}"
+ col_data = f" |prein| {col_data} |preout| "
+ elif column[u"data"].split(u" ")[1] in (u"msg", ):
col_data = f" |prein| {col_data} |preout| "
- if column[u"data"].split(u" ")[1] in \
+ elif column[u"data"].split(u" ")[1] in \
(u"conf-history", u"show-run"):
col_data = col_data.replace(u" |br| ", u"", 1)
col_data = f" |prein| {col_data[:-5]} |preout| "