Return with exit code in Doctor testcase 25/17825/2
authorCarlos Goncalves <carlos.goncalves@neclab.eu>
Fri, 29 Jul 2016 13:07:40 +0000 (15:07 +0200)
committerJose Lausuch <jose.lausuch@ericsson.com>
Fri, 29 Jul 2016 13:21:08 +0000 (13:21 +0000)
JIRA: DOCTOR-63

Change-Id: Ib142a6102a705ee571081651c650ced05f7d5d4f
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
testcases/features/doctor.py

index ef55506..bdf3ddc 100755 (executable)
@@ -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()