[ci skip], add close app in autotest.py

This commit is contained in:
shujunqiao 2014-04-14 11:55:11 +08:00
parent 2ee06a3533
commit 884974f5e4
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()