From 3e0c8aa83b50857b18250694f29f2e906d5f6ff8 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Fri, 13 Mar 2015 10:59:13 +0000 Subject: [PATCH] glb_corporate: clear logcat in Monitor's __init__ to prevent getting results from previous run. --- wlauto/workloads/glbcorp/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wlauto/workloads/glbcorp/__init__.py b/wlauto/workloads/glbcorp/__init__.py index 2ffcdb0c..74c11006 100644 --- a/wlauto/workloads/glbcorp/__init__.py +++ b/wlauto/workloads/glbcorp/__init__.py @@ -182,6 +182,9 @@ class GlbRunMonitor(threading.Thread): self.daemon = True self.run_ended = threading.Event() self.stop_event = threading.Event() + # Not using clear_logcat() because command collects directly, i.e. will + # ignore poller. + self.device.execute('logcat -c') if self.device.adb_name: self.command = ['adb', '-s', self.device.adb_name, 'logcat'] else: