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

Side by Side Diff: build/android/pylib/remote/device/remote_device_environment.py

Issue 803643002: Remove hardcoding of appurify address information. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | build/android/test_runner.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Environment setup and teardown for remote devices.""" 5 """Environment setup and teardown for remote devices."""
6 6
7 import os 7 import os
8 import sys 8 import sys
9 9
10 from pylib import constants 10 from pylib import constants
(...skipping 28 matching lines...) Expand all
39 error_func('Must set api key with --api-key or --api-key-file') 39 error_func('Must set api key with --api-key or --api-key-file')
40 40
41 if args.api_secret_file: 41 if args.api_secret_file:
42 with open(args.api_secret_file) as api_secret_file: 42 with open(args.api_secret_file) as api_secret_file:
43 self._api_secret = api_secret_file.read().strip() 43 self._api_secret = api_secret_file.read().strip()
44 elif args.api_secret: 44 elif args.api_secret:
45 self._api_secret = args.api_secret 45 self._api_secret = args.api_secret
46 else: 46 else:
47 error_func('Must set api secret with --api-secret or --api-secret-file') 47 error_func('Must set api secret with --api-secret or --api-secret-file')
48 48
49 if not args.api_protocol:
50 error_func('Must set api protocol with --api-protocol. Example: http')
49 self._api_protocol = args.api_protocol 51 self._api_protocol = args.api_protocol
52
53 if not args.api_address:
54 error_func('Must set api address with --api-address')
50 self._api_address = args.api_address 55 self._api_address = args.api_address
56
57 if not args.api_port:
58 error_func('Must set api port with --api-port.')
51 self._api_port = args.api_port 59 self._api_port = args.api_port
60
52 self._access_token = '' 61 self._access_token = ''
53 self._results_path = args.results_path 62 self._results_path = args.results_path
54 self._remote_device = args.remote_device 63 self._remote_device = args.remote_device
55 self._remote_device_os = args.remote_device_os 64 self._remote_device_os = args.remote_device_os
56 self._runner_package = args.runner_package 65 self._runner_package = args.runner_package
57 self._runner_type = args.runner_type 66 self._runner_type = args.runner_type
58 self._device = '' 67 self._device = ''
59 if not args.trigger and not args.collect: 68 if not args.trigger and not args.collect:
60 self._trigger = True 69 self._trigger = True
61 self._collect = True 70 self._collect = True
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 def runner_package(self): 142 def runner_package(self):
134 return self._runner_package 143 return self._runner_package
135 144
136 @property 145 @property
137 def trigger(self): 146 def trigger(self):
138 return self._trigger 147 return self._trigger
139 148
140 @property 149 @property
141 def collect(self): 150 def collect(self):
142 return self._collect 151 return self._collect
OLDNEW
« no previous file with comments | « no previous file | build/android/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698