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 | 6e5a5f883300f51ae914e6084385d4bee69e8555 (patch) | |
tree | 3b4f97a022dac2d97eb3533fbf945a008f0704d9 /utils/test | |
parent | f95330c3b0fea7fb2981ef95a20f06eff5542b7c (diff) |
Organization of reporting files
Change-Id: I2761528ca988f10deb112aab567bfd0ee407d072
Signed-off-by: boucherv <valentin.boucher@orange.com>
Diffstat (limited to 'utils/test')
-rw-r--r-- | utils/test/reporting/index-vims-tmpl.html (renamed from utils/test/reporting/index-tmpl.html) | 0 | ||||
-rw-r--r-- | utils/test/reporting/reporting-vims.py (renamed from utils/test/reporting/reporting.py) | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/test/reporting/index-tmpl.html b/utils/test/reporting/index-vims-tmpl.html index 4d1c50915..4d1c50915 100644 --- a/utils/test/reporting/index-tmpl.html +++ b/utils/test/reporting/index-vims-tmpl.html diff --git a/utils/test/reporting/reporting.py b/utils/test/reporting/reporting-vims.py index 246c6250c..cf43f3ebc 100644 --- a/utils/test/reporting/reporting.py +++ b/utils/test/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) |