diff options
author | Carlos Goncalves <carlos.goncalves@neclab.eu> | 2016-07-29 15:07:40 +0200 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2016-07-29 13:21:08 +0000 |
commit | af1eaab72bb2e4d4c52c5ccae8eb330e670526f9 (patch) | |
tree | f728daa7f71bbd32142af26c9c3cafdd0224f199 /testcases/features/doctor.py | |
parent | 6ba03f75cd81a5a68fa10fc82f41137d248821cc (diff) |
Return with exit code in Doctor testcase
JIRA: DOCTOR-63
Change-Id: Ib142a6102a705ee571081651c650ced05f7d5d4f
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
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 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() |