Bug 1155029 - [mozrunner] get device log from both main buffer and radio buffer. r=ahal
authorEdgar Chen <echen@mozilla.com>
Wed, 15 Apr 2015 17:10:09 +0800
changeset 239598 86970b32c0c826016419cf0bd44222ef98f43daf
parent 239597 9a43eedf4cdf069651a822142de1495e1970d2f8
child 239599 7a458d7e3e4f9e8a91b6c48445c12acd4abebaf4
push id12444
push userryanvm@gmail.com
push dateFri, 17 Apr 2015 20:04:42 +0000
treeherderfx-team@560a202db924 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1155029
milestone40.0a1
Bug 1155029 - [mozrunner] get device log from both main buffer and radio buffer. r=ahal
testing/mozbase/mozrunner/mozrunner/devices/base.py
--- a/testing/mozbase/mozrunner/mozrunner/devices/base.py
+++ b/testing/mozbase/mozrunner/mozrunner/devices/base.py
@@ -136,17 +136,17 @@ class Device(object):
         self.connected = True
 
         if self.logdir:
             # save logcat
             logcat_log = os.path.join(self.logdir, '%s.log' % serial)
             if os.path.isfile(logcat_log):
                 self._rotate_log(logcat_log)
             logcat_args = [self.app_ctx.adb, '-s', '%s' % serial,
-                           'logcat', '-v', 'time']
+                           'logcat', '-v', 'time', '-b', 'main', '-b', 'radio']
             self.logcat_proc = ProcessHandler(logcat_args, logfile=logcat_log)
             self.logcat_proc.run()
 
     def reboot(self):
         """
         Reboots the device via adb.
         """
         self.dm.reboot(wait=True)