aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtestcases/features/doctor.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testcases/features/doctor.py b/testcases/features/doctor.py
index ef55506af..bdf3ddc35 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()