Code Review
/
functest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
6ba03f7
)
Return with exit code in Doctor testcase
25/17825/2
author
Carlos Goncalves
<carlos.goncalves@neclab.eu>
Fri, 29 Jul 2016 13:07:40 +0000
(15:07 +0200)
committer
Jose 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
patch
|
blob
|
history
diff --git
a/testcases/features/doctor.py
b/testcases/features/doctor.py
index
ef55506
..
bdf3ddc
100755
(executable)
--- 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()