Merge pull request #6271 from shujunqiao/autotest-close

[ci skip], add close app in autotest.py
This commit is contained in:
James Chen 2014-04-14 13:38:54 +08:00
commit 71015184c3
1 changed files with 7 additions and 0 deletions

View File

@ -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()