Chromium Code Reviews| Index: build/android/pylib/remote/device/remote_device_uirobot_test_run.py |
| diff --git a/build/android/pylib/remote/device/remote_device_uirobot_test_run.py b/build/android/pylib/remote/device/remote_device_uirobot_test_run.py |
| index ed8db49c436f78033c575b0125bc7b4f7124f49a..80dba3d4074c601c9d44dfa967e4d0a4e693a23f 100644 |
| --- a/build/android/pylib/remote/device/remote_device_uirobot_test_run.py |
| +++ b/build/android/pylib/remote/device/remote_device_uirobot_test_run.py |
| @@ -51,7 +51,19 @@ class RemoteDeviceUirobotTestRun(remote_device_test_run.RemoteDeviceTestRun): |
| logging.info('Using default runner type: %s', default_runner_type) |
| else: |
| runner_type = self._env.runner_type |
| - self._test_id = self._GetTestByName(runner_type) |
| + # TODO(rnephew): Switch to UploadTestToDevice when supported. |
| + data = { |
| + 'access_token':self._env.token, |
| + 'test_type':'android_robot', |
| + 'app_id':self._app_id, |
| + } |
| + with appurify_sanitized.SanitizeLogging(self._env.verbose_count, |
| + logging.WARNING): |
| + test_upload_res = appurify_sanitized.utils.post('tests/upload', |
| + data, None) |
| + remote_device_helper.TestHttpResponse( |
| + test_upload_res, 'Unable to get UiRobot test id.') |
|
jbudorick
2015/01/23 19:07:03
nit: move this to a separate function s.t. UploadT
rnephew (Wrong account)
2015/01/23 19:22:44
Done.
|
| + self._test_id = test_upload_res.json()['response']['test_id'] |
| config_body = {'duration': self._test_instance.minutes} |
| self._SetTestConfig(runner_type, config_body) |