Bad status on rally_sanity
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Tue, 26 Jul 2016 01:54:37 +0000 (09:54 +0800)
committerJose Lausuch <jose.lausuch@ericsson.com>
Tue, 26 Jul 2016 08:42:26 +0000 (08:42 +0000)
format total_success to float when compared with numeric 90

JIRA: FUNCTEST-365

Change-Id: I473582053c107bb026bf0e8d76dab46b2e5e3eb6
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
testcases/OpenStack/rally/run_rally-cert.py

index 589939b..9f7eecc 100755 (executable)
@@ -515,7 +515,7 @@ def main():
     # Evaluation of the success criteria
     status = "FAIL"
     # for Rally we decided that the overall success rate must be above 90%
-    if total_success >= 90:
+    if float(total_success) >= 90:
         status = "PASS"
 
     if args.sanity: