Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2258)

Unified Diff: build/android/buildbot/bb_device_status_check.py

Issue 24253006: Android / Telemetry: final cleanup on perf_tests_helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/android/buildbot/bb_device_status_check.py
diff --git a/build/android/buildbot/bb_device_status_check.py b/build/android/buildbot/bb_device_status_check.py
index d0fdab2e1380aa2dd44c1d0026cba69702f80146..d2ac87ad605cff43481ff00dfc23bc8821163d35 100755
--- a/build/android/buildbot/bb_device_status_check.py
+++ b/build/android/buildbot/bb_device_status_check.py
@@ -15,10 +15,14 @@ import urllib
import bb_annotations
+sys.path.append(os.path.join(os.path.dirname(__file__),
+ os.pardir, os.pardir, 'util', 'lib',
+ 'common'))
+import perf_tests_results_helper
+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from pylib import android_commands
from pylib import constants
-from pylib import perf_tests_helper
from pylib.cmd_helper import GetCmdOutput
@@ -244,14 +248,15 @@ def main():
SendDeviceStatusAlert(msg)
if options.device_status_dashboard:
- perf_tests_helper.PrintPerfResult('BotDevices', 'OnlineDevices',
- [len(devices)], 'devices')
- perf_tests_helper.PrintPerfResult('BotDevices', 'OfflineDevices',
- [len(offline_devices)], 'devices',
- 'unimportant')
+ perf_tests_results_helper.PrintPerfResult('BotDevices', 'OnlineDevices',
+ [len(devices)], 'devices')
+ perf_tests_results_helper.PrintPerfResult('BotDevices', 'OfflineDevices',
+ [len(offline_devices)], 'devices',
+ 'unimportant')
for serial, battery in zip(devices, batteries):
- perf_tests_helper.PrintPerfResult('DeviceBattery', serial, [battery], '%',
- 'unimportant')
+ perf_tests_results_helper.PrintPerfResult('DeviceBattery', serial,
+ [battery], '%',
+ 'unimportant')
if False in fail_step_lst:
# TODO(navabi): Build fails on device status check step if there exists any
« no previous file with comments | « no previous file | build/android/pylib/instrumentation/test_runner.py » ('j') | build/android/pylib/instrumentation/test_runner.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698