diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-10-18 14:28:03 +0200 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-10-18 14:31:00 +0200 |
commit | 1bfc86b6a043224cef18e5806240118d282baca6 (patch) | |
tree | d8e655b740332124fb89c1e16a2d7ac887b8a2d1 /reporting/functest/reportingUtils.py | |
parent | cf29e20418012f850d0fa18de5bd24a49f819886 (diff) |
bug fix: pdf generation
Change-Id: Ic101411a991b4baac8e1683bc5cad924f85f05c2
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'reporting/functest/reportingUtils.py')
-rw-r--r-- | reporting/functest/reportingUtils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/reporting/functest/reportingUtils.py b/reporting/functest/reportingUtils.py index 9ba02e8..74d6f19 100644 --- a/reporting/functest/reportingUtils.py +++ b/reporting/functest/reportingUtils.py @@ -176,3 +176,11 @@ def getJenkinsUrl(build_tag): print 'Impossible to get jenkins url:' return jenkins_url + +def getScenarioPercent(scenario_score,scenario_criteria): + score = 0.0 + try: + score = float(scenario_score) / float(scenario_criteria) * 100 + except: + print 'Impossible to calculate the percentage score' + return score |