author | Marian Raiciof <mraiciof@mozilla.com> |
Mon, 22 Jul 2019 15:38:22 +0000 | |
changeset 483803 | 91aafa35131331899a4fe956fdcb71846dd42fb8 |
parent 483802 | 8829c936dd59527fd43f7fb188f3aa120a8e0907 |
child 483804 | dd55833f632858224c12a38b91692015cf0d3995 |
push id | 36333 |
push user | nerli@mozilla.com |
push date | Tue, 23 Jul 2019 15:57:48 +0000 |
treeherder | mozilla-central@5b35e2ff7c15 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | perftest-reviewers, Bebe |
bugs | 1564200 |
milestone | 70.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/testing/raptor/raptor/raptor.py +++ b/testing/raptor/raptor/raptor.py @@ -979,21 +979,26 @@ class RaptorAndroid(Raptor): proxy_prefs["network.proxy.http"] = self.config['host'] proxy_prefs["network.proxy.http_port"] = 8080 proxy_prefs["network.proxy.ssl"] = self.config['host'] proxy_prefs["network.proxy.ssl_port"] = 8080 proxy_prefs["network.proxy.no_proxies_on"] = self.config['host'] self.profile.set_preferences(proxy_prefs) def log_android_device_temperature(self): - # retrieve and log the android device temperature - thermal_zone0 = float(self.device.shell_output('cat sys/class/thermal/thermal_zone0/temp')) - zone_type = self.device.shell_output('cat sys/class/thermal/thermal_zone0/type') - LOG.info("(thermal_zone0) device temperature: %.3f zone type: %s" - % (thermal_zone0 / 1000, zone_type)) + try: + # retrieve and log the android device temperature + thermal_zone0 = self.device.shell_output('cat sys/class/thermal/thermal_zone0/temp') + thermal_zone0 = float(thermal_zone0) + zone_type = self.device.shell_output('cat sys/class/thermal/thermal_zone0/type') + LOG.info("(thermal_zone0) device temperature: %.3f zone type: %s" + % (thermal_zone0 / 1000, zone_type)) + except Exception as exc: + LOG.warning("Unexpected error: {} - {}" + .format(exc.__class__.__name__, exc)) def write_android_app_config(self): # geckoview supports having a local on-device config file; use this file # to tell the app to use the specified browser profile, as well as other opts # on-device: /data/local/tmp/com.yourcompany.yourapp-geckoview-config.yaml # https://mozilla.github.io/geckoview/tutorials/automation.html#configuration-file-format # only supported for geckoview apps