Bug 726833 - SUT client can hang if prompt occurs on 1024-byte boundary. r=jmaher

This commit is contained in:
William Lachance 2012-02-14 12:28:41 -05:00
parent 6c8466bf46
commit 2eeb857e71

View File

@ -215,12 +215,11 @@ class DeviceManagerSUT(DeviceManager):
data = temp
break
lines = temp.split('\n')
data += temp
for line in lines:
for line in data.splitlines():
if (promptre.match(line)):
found = True
data += temp
# If we violently lose the connection to the device, this loop tends to spin,
# this guard prevents that