aboutsummaryrefslogtreecommitdiffstats
path: root/testcases
diff options
context:
space:
mode:
authorCarlos Goncalves <carlos.goncalves@neclab.eu>2016-07-29 15:07:40 +0200
committerJose Lausuch <jose.lausuch@ericsson.com>2016-07-29 13:21:08 +0000
commitaf1eaab72bb2e4d4c52c5ccae8eb330e670526f9 (patch)
treef728daa7f71bbd32142af26c9c3cafdd0224f199 /testcases
parent6ba03f75cd81a5a68fa10fc82f41137d248821cc (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')
-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()