mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 999071 - Empty ANR file during testing instead of deleting it; r=gbrown
This commit is contained in:
parent
b807184a9a
commit
91db7d8775
@ -98,10 +98,12 @@ class RemoteAutomation(Automation):
|
||||
return status
|
||||
|
||||
def deleteANRs(self):
|
||||
# delete ANR traces.txt file; usually need root permissions
|
||||
# empty ANR traces.txt file; usually need root permissions
|
||||
# we make it empty and writable so we can test the ANR reporter later
|
||||
traces = "/data/anr/traces.txt"
|
||||
try:
|
||||
self._devicemanager.shellCheckOutput(['rm', traces], root=True)
|
||||
self._devicemanager.shellCheckOutput(['echo', '', '>', traces], root=True)
|
||||
self._devicemanager.shellCheckOutput(['chmod', '666', traces], root=True)
|
||||
except DMError:
|
||||
print "Error deleting %s" % traces
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user