PAL: Process show runtime output 3 50/21350/1
authorTibor Frank <tifrank@cisco.com>
Fri, 16 Aug 2019 07:41:06 +0000 (09:41 +0200)
committerTibor Frank <tifrank@cisco.com>
Fri, 16 Aug 2019 07:41:06 +0000 (09:41 +0200)
- format the table

Change-Id: I871251a8329e5d52c527c93afe35d875bddaed0c
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/input_data_parser.py

index f2656d2..25e258f 100644 (file)
@@ -533,15 +533,17 @@ class ExecutionChecker(ResultVisitor):
                         else:
                             if any(row[1:]):
                                 txt_table.add_row(row)
+                    txt_table.set_style(prettytable.MSWORD_FRIENDLY)
                     txt_table.align["Name"] = "l"
                     txt_table.align["Calls"] = "r"
                     txt_table.align["Vectors"] = "r"
                     txt_table.align["Suspends"] = "r"
                     txt_table.align["Clocks"] = "r"
 
-                    text += txt_table.get_html_string(sortby="Name") + '\n'
+                    text += txt_table.get_string(sortby="Name") + '\n'
 
-                text = text.replace('\n', '').replace('\r', '')
+                text = text.replace('\n', ' |br| ').replace('\r', '').\
+                    replace('"', "'")
                 try:
                     self._data["tests"][self._test_ID]["show-run"] += " |br| "
                     self._data["tests"][self._test_ID]["show-run"] += \

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.