summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--reporting/index-vims-tmpl.html (renamed from reporting/index-tmpl.html)0
-rw-r--r--reporting/reporting-vims.py (renamed from reporting/reporting.py)6
2 files changed, 3 insertions, 3 deletions
diff --git a/reporting/index-tmpl.html b/reporting/index-vims-tmpl.html
index 4d1c509..4d1c509 100644
--- a/reporting/index-tmpl.html
+++ b/reporting/index-vims-tmpl.html
diff --git a/reporting/reporting.py b/reporting/reporting-vims.py
index 246c625..cf43f3e 100644
--- a/reporting/reporting.py
+++ b/reporting/reporting-vims.py
@@ -47,7 +47,7 @@ for installer in installers:
for result in scenario_results[s]:
result["creation_date"] = result["creation_date"].split(".")[0]
sig_test = result['details']['sig_test']['result']
- if not sig_test == "":
+ if not sig_test == "" and isinstance(sig_test, list):
format_result = sig_test_format(sig_test)
if format_result['failures'] > format_result['passed']:
result['details']['sig_test']['duration'] = 0
@@ -72,12 +72,12 @@ for installer in installers:
templateLoader = jinja2.FileSystemLoader(os.path.dirname(os.path.abspath(__file__)))
templateEnv = jinja2.Environment( loader=templateLoader )
- TEMPLATE_FILE = "index-tmpl.html"
+ TEMPLATE_FILE = "index-vims-tmpl.html"
template = templateEnv.get_template( TEMPLATE_FILE )
outputText = template.render( scenario_results = scenario_results, step_order = step_order, installer = installer)
- with open("index-" + installer + ".html", "wb") as fh:
+ with open("index-vims" + installer + ".html", "wb") as fh:
fh.write(outputText)