aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-06-05 12:25:32 +0200
committerTibor Frank <tifrank@cisco.com>2018-06-08 11:31:48 +0000
commit8b7416d72f67a8ccd408d81a56d8ae1094305d18 (patch)
treebd3aa9c69e3e360fd01cdefefa81b5e76469c9ee /resources/tools/presentation/generator_tables.py
parentd947e9de7ba6641145f00bece0ff61a4ef48d804 (diff)
CSIT-1116: Add dpdk mrr tests to trending
- Add static content - Add models to specification - Add plots - Add dpdk tests to dashboard - Add dpdk to csv and pretty ASCII tables - Get DPDK version from output.xml Change-Id: I2d9a911d882c205f82432125b601b125807f0ca0 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 1b0eb36d34..abece8590b 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -845,7 +845,7 @@ def table_performance_trending_dashboard(table, input_data):
file_name = "{0}{1}".format(table["output-file"], table["output-file-ext"])
- logging.info(" Writing file: '{0}'".format(file_name))
+ logging.info(" Writing file: '{0}'".format(file_name))
with open(file_name, "w") as file_handler:
file_handler.write(header_str)
for test in tbl_sorted:
@@ -853,7 +853,7 @@ def table_performance_trending_dashboard(table, input_data):
txt_file_name = "{0}.txt".format(table["output-file"])
txt_table = None
- logging.info(" Writing file: '{0}'".format(txt_file_name))
+ logging.info(" Writing file: '{0}'".format(txt_file_name))
with open(file_name, 'rb') as csv_file:
csv_content = csv.reader(csv_file, delimiter=',', quotechar='"')
for row in csv_content:
@@ -929,7 +929,13 @@ def table_performance_trending_dashboard_html(table, input_data):
anchor = "#"
feature = ""
if c_idx == 0:
- if "memif" in item:
+ if "lbdpdk" in item or "lbvpp" in item:
+ file_name = "link_bonding.html"
+
+ elif "testpmd" in item or "l3fwd" in item:
+ file_name = "dpdk.html"
+
+ elif "memif" in item:
file_name = "container_memif.html"
elif "srv6" in item:
@@ -992,13 +998,12 @@ def table_performance_trending_dashboard_html(table, input_data):
ref = ET.SubElement(td, "a", attrib=dict(href=url))
ref.text = item
- if c_idx > 0:
+ else:
td.text = item
try:
with open(table["output-file"], 'w') as html_file:
- logging.info(" Writing file: '{0}'".
- format(table["output-file"]))
+ logging.info(" Writing file: '{0}'".format(table["output-file"]))
html_file.write(".. raw:: html\n\n\t")
html_file.write(ET.tostring(dashboard))
html_file.write("\n\t<p><br><br></p>\n")