diff options
author | Tibor Frank <tifrank@cisco.com> | 2019-08-16 09:41:06 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2019-08-16 07:42:49 +0000 |
commit | 6d2df41aa905ac8fc132b461bb692938d97af47f (patch) | |
tree | cc6fe9bc2538b1f6ce3aab63df1cc6be69639b92 /resources | |
parent | ad4d0130f32f295310d3dd330ad477f620938951 (diff) |
PAL: Process show runtime output 3
- format the table
Change-Id: I871251a8329e5d52c527c93afe35d875bddaed0c
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit 859a3f724c077f9db9a2f40f76b6dad27f199003)
Diffstat (limited to 'resources')
-rw-r--r-- | resources/tools/presentation/input_data_parser.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py index f2656d2381..25e258f75a 100644 --- a/resources/tools/presentation/input_data_parser.py +++ b/resources/tools/presentation/input_data_parser.py @@ -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"] += \ |