mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6271 from shujunqiao/autotest-close
[ci skip], add close app in autotest.py
This commit is contained in:
commit
71015184c3
|
@ -45,8 +45,15 @@ def autotest(type):
|
||||||
while True:
|
while True:
|
||||||
data = soc.recv(1024)
|
data = soc.recv(1024)
|
||||||
print data
|
print data
|
||||||
|
if data == 'TestEnd':
|
||||||
|
lastTestInfo = True
|
||||||
|
break
|
||||||
|
global lastTestInfo
|
||||||
|
if len(data) > len('\n') :
|
||||||
|
lastTestInfo = data
|
||||||
if not data: break
|
if not data: break
|
||||||
|
|
||||||
|
soc.send('director end\r\n')
|
||||||
print 'test end and close socket.'
|
print 'test end and close socket.'
|
||||||
soc.close()
|
soc.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue