summaryrefslogtreecommitdiffstats
path: root/utils/test/reporting/functest/reporting-status.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-09-29 15:23:01 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-09-29 15:23:01 +0000
commit6a082c66d6f14ba8801e0a02fe5bd193c2a32f68 (patch)
treeaab4b2a46b5d3779eff91c6e4f61a80a3a5e82d7 /utils/test/reporting/functest/reporting-status.py
parente30a45c0a8d598a4765dbd14c266271065719a70 (diff)
parentb24f036bc4817ec3f8ee29593c93721f826a6264 (diff)
Merge "Add a trend line to Functest reporting And use d3js lib rather than static images"
Diffstat (limited to 'utils/test/reporting/functest/reporting-status.py')
-rwxr-xr-xutils/test/reporting/functest/reporting-status.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/test/reporting/functest/reporting-status.py b/utils/test/reporting/functest/reporting-status.py
index 90699bd61..9df699629 100755
--- a/utils/test/reporting/functest/reporting-status.py
+++ b/utils/test/reporting/functest/reporting-status.py
@@ -184,8 +184,13 @@ for version in conf.versions:
scenario_criteria = conf.MAX_SCENARIO_CRITERIA
s_score = str(scenario_score) + "/" + str(scenario_criteria)
- s_score_percent = float(
+ s_score_percent = 0.0
+ try:
+ s_score_percent = float(
scenario_score) / float(scenario_criteria) * 100
+ except:
+ logger.error("cannot calculate the score percent")
+
s_status = "KO"
if scenario_score < scenario_criteria:
logger.info(">>>> scenario not OK, score = %s/%s" %