From af1eaab72bb2e4d4c52c5ccae8eb330e670526f9 Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Fri, 29 Jul 2016 15:07:40 +0200 Subject: Return with exit code in Doctor testcase JIRA: DOCTOR-63 Change-Id: Ib142a6102a705ee571081651c650ced05f7d5d4f Signed-off-by: Carlos Goncalves --- testcases/features/doctor.py | 4 ++++ 1 file changed, 4 insertions(+) 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() -- cgit 1.2.3-korg