| Index: build/android/pylib/gtest/test_package_apk.py
|
| diff --git a/build/android/pylib/gtest/test_package_apk.py b/build/android/pylib/gtest/test_package_apk.py
|
| index 9672f7aec8e882112d6cbb0f3661922c93bea534..16ef21c6e449030cb8aca8cc2cf2cca115a7ec0d 100644
|
| --- a/build/android/pylib/gtest/test_package_apk.py
|
| +++ b/build/android/pylib/gtest/test_package_apk.py
|
| @@ -5,8 +5,10 @@
|
| """Defines TestPackageApk to help run APK-based native tests."""
|
| # pylint: disable=W0212
|
|
|
| +import itertools
|
| import logging
|
| import os
|
| +import posixpath
|
| import shlex
|
| import sys
|
| import tempfile
|
| @@ -18,6 +20,7 @@ from pylib import pexpect
|
| from pylib.device import device_errors
|
| from pylib.device import intent
|
| from pylib.gtest import gtest_test_instance
|
| +from pylib.gtest import local_device_gtest_run
|
| from pylib.gtest.test_package import TestPackage
|
|
|
|
|
| @@ -30,18 +33,14 @@ class TestPackageApk(TestPackage):
|
| suite_name: Name of the test suite (e.g. base_unittests).
|
| """
|
| TestPackage.__init__(self, suite_name)
|
| + self.suite_path = os.path.join(
|
| + constants.GetOutDirectory(), '%s_apk' % suite_name,
|
| + '%s-debug.apk' % suite_name)
|
| if suite_name == 'content_browsertests':
|
| - self.suite_path = os.path.join(
|
| - constants.GetOutDirectory(), 'apks', '%s.apk' % suite_name)
|
| self._package_info = constants.PACKAGE_INFO['content_browsertests']
|
| elif suite_name == 'components_browsertests':
|
| - self.suite_path = os.path.join(
|
| - constants.GetOutDirectory(), 'apks', '%s.apk' % suite_name)
|
| self._package_info = constants.PACKAGE_INFO['components_browsertests']
|
| else:
|
| - self.suite_path = os.path.join(
|
| - constants.GetOutDirectory(), '%s_apk' % suite_name,
|
| - '%s-debug.apk' % suite_name)
|
| self._package_info = constants.PACKAGE_INFO['gtest']
|
|
|
| def _CreateCommandLineFileOnDevice(self, device, options):
|
| @@ -145,3 +144,8 @@ class TestPackageApk(TestPackage):
|
| def Install(self, device):
|
| self.tool.CopyFiles(device)
|
| device.Install(self.suite_path)
|
| +
|
| + #override
|
| + def PullAppFiles(self, device, files, directory):
|
| + local_device_gtest_run.PullAppFilesImpl(
|
| + device, self._package_info.package, files, directory)
|
|
|