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

Unified Diff: devil/devil/android/tools/device_status.py

Issue 2103793004: [Devil] Fix devil_env config for device_status and device_recovery scripts. (Closed) Base URL: git@github.com:catapult-project/catapult@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 | « devil/devil/android/tools/device_recovery.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: devil/devil/android/tools/device_status.py
diff --git a/devil/devil/android/tools/device_status.py b/devil/devil/android/tools/device_status.py
index 760a9324942fe88acb95684cd635febf86740eee..3be4148b72b56dc4bf860d778d136e0bcceb5326 100755
--- a/devil/devil/android/tools/device_status.py
+++ b/devil/devil/android/tools/device_status.py
@@ -258,14 +258,23 @@ def main():
run_tests_helper.SetLogLevel(args.verbose)
- devil_custom_deps = None
+
+ devil_dynamic_config = {
+ 'config_type': 'BaseConfig',
+ 'dependencies': {},
+ }
+
if args.adb_path:
- devil_custom_deps = {
- 'adb': {
- devil_env.GetPlatform(): [args.adb_path],
- },
- }
- devil_env.config.Initialize(configs=devil_custom_deps)
+ devil_dynamic_config['dependencies'].update({
+ 'adb': {
+ 'file_info': {
+ devil_env.GetPlatform(): {
+ 'local_paths': [args.adb_path]
+ }
+ }
+ }
+ })
+ devil_env.config.Initialize(configs=[devil_dynamic_config])
blacklist = (device_blacklist.Blacklist(args.blacklist_file)
if args.blacklist_file
« no previous file with comments | « devil/devil/android/tools/device_recovery.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698