diff options
Diffstat (limited to 'testcases/features/doctor.py')
-rwxr-xr-x | testcases/features/doctor.py | 4 |
1 files changed, 4 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() |