From 884974f5e4a3c34c4fa4671429f00bc7e8dc471a Mon Sep 17 00:00:00 2001 From: shujunqiao Date: Mon, 14 Apr 2014 11:55:11 +0800 Subject: [PATCH] [ci skip], add close app in autotest.py --- tools/jenkins-scripts/autotest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/jenkins-scripts/autotest.py b/tools/jenkins-scripts/autotest.py index 88ddcd6b9d..b585cef14e 100755 --- a/tools/jenkins-scripts/autotest.py +++ b/tools/jenkins-scripts/autotest.py @@ -45,8 +45,15 @@ def autotest(type): while True: data = soc.recv(1024) print data + if data == 'TestEnd': + lastTestInfo = True + break + global lastTestInfo + if len(data) > len('\n') : + lastTestInfo = data if not data: break + soc.send('director end\r\n') print 'test end and close socket.' soc.close()