mirror of https://github.com/axmolengine/axmol.git
[ci skip], add close app in autotest.py
This commit is contained in:
parent
2ee06a3533
commit
884974f5e4
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue