diff options
author | boucherv <valentin.boucher@orange.com> | 2016-03-12 22:47:46 +0100 |
---|---|---|
committer | boucherv <valentin.boucher@orange.com> | 2016-03-12 22:47:46 +0100 |
commit | 1ebb587ff5691f62cdaa90f372d17a0dd695cbc4 (patch) | |
tree | a9f1e4a941717f5072fed008f55ecec93945189b /reporting | |
parent | dcb90a06f0dfa25f696aeb964e861354dbd94eee (diff) |
Organization of reporting files
Change-Id: I2761528ca988f10deb112aab567bfd0ee407d072
Signed-off-by: boucherv <valentin.boucher@orange.com>
Diffstat (limited to 'reporting')
-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) |