mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 772531 - detect when a tegra reboots via log file parsing, mark test as red and allow tbpl to get accurate information. r=wlach
This commit is contained in:
parent
eb91f1fcc5
commit
e3e5b6f242
@ -15,6 +15,7 @@ import traceback
|
||||
import sys
|
||||
import StringIO
|
||||
from devicemanager import DeviceManager, DMError, FileError, NetworkTools, _pop_last_line
|
||||
import errno
|
||||
|
||||
class AgentError(Exception):
|
||||
"SUTAgent-specific exception."
|
||||
@ -216,10 +217,13 @@ class DeviceManagerSUT(DeviceManager):
|
||||
if select.select([self._sock], [], [], 1)[0]:
|
||||
temp = self._sock.recv(1024)
|
||||
if (self.debug >= 4): print "response: " + str(temp)
|
||||
except socket.error, msg:
|
||||
except socket.error, err:
|
||||
self._sock.close()
|
||||
self._sock = None
|
||||
raise AgentError("Error receiving data from socket. cmd="+str(cmd['cmd'])+"; err="+str(msg))
|
||||
# This error shows up with we have our tegra rebooted.
|
||||
if err[0] == errno.ECONNRESET:
|
||||
raise AgentError("Automation error: Error receiving data from socket (possible reboot). cmd=%s; err=%s" % (cmd, err), True)
|
||||
raise AgentError("Error receiving data from socket. cmd=%s; err=%s" % (cmd, err))
|
||||
|
||||
data += temp
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user