diff options
author | rnephew <rnephew@chromium.org> | 2015-01-08 13:20:13 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-08 21:21:11 +0000 |
commit | 372d19064a31240d9808b2ea60d377e47f1e7295 (patch) | |
tree | e1e7dbc260a2c7c2c8c92985e630301f723c532c /build | |
parent | 59cfdd51b9d2c1515b9da7faca5b01ba99180572 (diff) | |
download | chromium_src-372d19064a31240d9808b2ea60d377e47f1e7295.zip chromium_src-372d19064a31240d9808b2ea60d377e47f1e7295.tar.gz chromium_src-372d19064a31240d9808b2ea60d377e47f1e7295.tar.bz2 |
Fix appurify naming.
Fixes how test names appear in appurify.
BUG=428729
Review URL: https://codereview.chromium.org/835713003
Cr-Commit-Position: refs/heads/master@{#310599}
Diffstat (limited to 'build')
-rw-r--r-- | build/android/pylib/remote/device/remote_device_test_run.py | 3 | ||||
-rw-r--r-- | build/android/pylib/uirobot/uirobot_test_instance.py | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/build/android/pylib/remote/device/remote_device_test_run.py b/build/android/pylib/remote/device/remote_device_test_run.py index 2144e24..92f2330 100644 --- a/build/android/pylib/remote/device/remote_device_test_run.py +++ b/build/android/pylib/remote/device/remote_device_test_run.py @@ -184,12 +184,11 @@ class RemoteDeviceTestRun(test_run.TestRun): def _UploadAppToDevice(self, app_path): """Upload app to device.""" logging.info('Uploading %s to remote service.', app_path) - apk_name = os.path.basename(app_path) with open(app_path, 'rb') as apk_src: with appurify_sanitized.SanitizeLogging(self._env.verbose_count, logging.WARNING): upload_results = appurify_sanitized.api.apps_upload( - self._env.token, apk_src, 'raw', name=apk_name) + self._env.token, apk_src, 'raw', name=self._test_instance.suite) remote_device_helper.TestHttpResponse( upload_results, 'Unable to upload %s.' % app_path) return upload_results.json()['response']['app_id'] diff --git a/build/android/pylib/uirobot/uirobot_test_instance.py b/build/android/pylib/uirobot/uirobot_test_instance.py index 9eba0acb..a531b41 100644 --- a/build/android/pylib/uirobot/uirobot_test_instance.py +++ b/build/android/pylib/uirobot/uirobot_test_instance.py @@ -21,6 +21,7 @@ class UirobotTestInstance(test_instance.TestInstance): constants.GetOutDirectory(), args.apk_under_test) self._minutes = args.minutes self._package_name = apk_helper.GetPackageName(self._apk_under_test) + self._suite = 'Android Uirobot' #override def TestType(self): @@ -51,3 +52,7 @@ class UirobotTestInstance(test_instance.TestInstance): def package_name(self): """Returns the name of the package in the APK.""" return self._package_name + + @property + def suite(self): + return self._suite |