1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-05 18:31:12 +01:00

target: Force consistent logcat format

On some devices the default logcat format was inconsistent with what was
expected. This change explicitly sets the logcat format to be as
expected.
This commit is contained in:
Jonathan Paynter 2020-07-16 10:57:21 +01:00 committed by Marc Bonnici
parent 716e59daf5
commit 7086fa6b48

View File

@ -113,7 +113,7 @@ class AndroidAssistant(object):
if self.logcat_poller:
self.logcat_poller.write_log(outfile)
else:
self.target.dump_logcat(outfile)
self.target.dump_logcat(outfile, logcat_format='threadtime')
def clear_logcat(self):
if self.logcat_poller:
@ -226,7 +226,7 @@ class LogcatPoller(threading.Thread):
def poll(self):
self.last_poll = time.time()
self.target.dump_logcat(self.buffer_file, append=True, timeout=self.timeout)
self.target.dump_logcat(self.buffer_file, append=True, timeout=self.timeout, logcat_format='threadtime')
self.target.clear_logcat()
def insert_logcat_marker(self):