1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 02:40:50 +01:00

LogcatMonitor: Fix clear_log

This commit is contained in:
Brendan Jackman 2017-10-12 14:39:27 +01:00
parent 5421ddaae8
commit 71d5b8bc79

View File

@ -607,7 +607,7 @@ class LogcatMonitor(object):
return [line for line in fh]
def clear_log(self):
with open(self._logfile, 'w') as fh:
with open(self._logfile.name, 'w') as fh:
pass
def search(self, regexp):