aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/pal_utils.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-05-04 09:13:01 +0200
committerTibor Frank <tifrank@cisco.com>2020-05-05 04:48:34 +0000
commit68079ecfc6265a621d8e91b43d08fff5801f75d7 (patch)
tree868cab59015334c60a9848cd47201892cc617c1c /resources/tools/presentation/pal_utils.py
parentae1d7e4b821093f84a7a56ff88900e00df86ef8c (diff)
Trending: CSIT-1301: Display stdev in hover info
+ make possible to use dashboard for ndrpdr tests + fixes in ndrpdr weekly comparison Change-Id: I846dc207ea620fad78424a445b32095160d4431d Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/pal_utils.py')
-rw-r--r--resources/tools/presentation/pal_utils.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/resources/tools/presentation/pal_utils.py b/resources/tools/presentation/pal_utils.py
index 1b9131a30e..98d5837989 100644
--- a/resources/tools/presentation/pal_utils.py
+++ b/resources/tools/presentation/pal_utils.py
@@ -318,14 +318,13 @@ def convert_csv_to_pretty_txt(csv_file_name, txt_file_name, delimiter=u","):
txt_table.add_row(
[str(itm.replace(u"\u00B1", u"+-")) for itm in row]
)
- txt_table.align = u"r"
- txt_table.align[u"Test Case"] = u"l"
- txt_table.align[u"Build"] = u"l"
- txt_table.align[u"Version"] = u"l"
-
if not txt_table:
return
+ txt_table.align = u"r"
+ for itm in (u"Test Case", u"Build", u"Version", u"VPP Version"):
+ txt_table.align[itm] = u"l"
+
if txt_file_name.endswith(u".txt"):
with open(txt_file_name, u"wt", encoding='utf-8') as txt_file:
txt_file.write(str(txt_table))