aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/features/bgpvpn.py
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/features/bgpvpn.py')
-rw-r--r--testcases/features/bgpvpn.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/testcases/features/bgpvpn.py b/testcases/features/bgpvpn.py
index 03aecbb3..e3db9209 100644
--- a/testcases/features/bgpvpn.py
+++ b/testcases/features/bgpvpn.py
@@ -94,8 +94,16 @@ def main():
logger.info("Results: " + str(json_results))
criteria = "failed"
- if int(tests) > 0 and int(failed) < 1:
+ # criteria = success rate = 100% (i.e all tests passed)
+ criteria_run = int(tests)
+ if not failed:
+ criteria_failed = 0
+ else:
+ criteria_failed = int(failed)
+
+ if criteria_run > 0 and criteria_failed < 1:
criteria = "passed"
+
# Push results in payload of testcase
if args.report:
logger.debug("Push result into DB")