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