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

Unified Diff: build/android/pylib/perf/setup.py

Issue 2070043002: [Android] Fall back to active_devices if the known device list file is empty. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/perf/setup.py
diff --git a/build/android/pylib/perf/setup.py b/build/android/pylib/perf/setup.py
index 31db14fa031e0cccfe8b573bb6bc0b56f9dbaaeb..6abefef1f475f45673eea1e560dc4a62a7cff895 100644
--- a/build/android/pylib/perf/setup.py
+++ b/build/android/pylib/perf/setup.py
@@ -28,6 +28,10 @@ def _GetAllDevices(active_devices, devices_path):
if devices_path:
devices = [device_utils.DeviceUtils(s)
for s in device_list.GetPersistentDeviceList(devices_path)]
+ if not devices and active_devices:
+ logging.warning('%s is empty. Falling back to active devices.',
+ devices_path)
+ devices = active_devices
else:
logging.warning('Known devices file path not being passed. For device '
'affinity to work properly, it must be passed.')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698