aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/features
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/features')
-rwxr-xr-xtestcases/features/doctor.py4
-rwxr-xr-xtestcases/features/promise.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/testcases/features/doctor.py b/testcases/features/doctor.py
index ef55506a..bdf3ddc3 100755
--- a/testcases/features/doctor.py
+++ b/testcases/features/doctor.py
@@ -33,6 +33,7 @@ logger = ft_logger.Logger("doctor").getLogger()
def main():
+ exit_code = -1
cmd = 'cd %s/tests && ./run.sh' % DOCTOR_REPO
start_time = time.time()
@@ -43,6 +44,7 @@ def main():
if ret == 0:
logger.info("doctor OK")
test_status = 'OK'
+ exit_code = 0
else:
logger.info("doctor FAILED")
test_status = 'NOK'
@@ -79,5 +81,7 @@ def main():
status,
details)
+ exit(exit_code)
+
if __name__ == '__main__':
main()
diff --git a/testcases/features/promise.py b/testcases/features/promise.py
index 74c1ad78..170f7549 100755
--- a/testcases/features/promise.py
+++ b/testcases/features/promise.py
@@ -70,6 +70,7 @@ logger = ft_logger.Logger("promise").getLogger()
def main():
+ exit_code = -1
start_time = time.time()
ks_creds = openstack_utils.get_credentials("keystone")
nv_creds = openstack_utils.get_credentials("nova")
@@ -241,6 +242,7 @@ def main():
status = "FAIL"
if int(tests) > 32 and int(failures) < 1:
status = "PASS"
+ exit_code = 0
functest_utils.push_results_to_db("promise",
"promise",
@@ -250,6 +252,8 @@ def main():
status,
json_results)
+ exit(exit_code)
+
if __name__ == '__main__':
main()