Index: build/android/pylib/instrumentation/instrumentation_test_instance.py |
diff --git a/build/android/pylib/instrumentation/instrumentation_test_instance.py b/build/android/pylib/instrumentation/instrumentation_test_instance.py |
index 2443384e51864c28c3a3c22d2b19f34704ae8aca..810e9ffbc1a32f2f92ecc77e600ad164f5b8dba1 100644 |
--- a/build/android/pylib/instrumentation/instrumentation_test_instance.py |
+++ b/build/android/pylib/instrumentation/instrumentation_test_instance.py |
@@ -20,6 +20,8 @@ from pylib.instrumentation import instrumentation_parser |
from pylib.utils import dexdump |
from pylib.utils import proguard |
from pylib.utils import shared_preference_utils |
+from pylib.utils import symbolizer |
+ |
with host_paths.SysPath(host_paths.BUILD_COMMON_PATH): |
import unittest_util # pylint: disable=import-error |
@@ -443,6 +445,7 @@ class InstrumentationTestInstance(test_instance.TestInstance): |
self._initializeTestCoverageAttributes(args) |
self._store_tombstones = False |
+ self._symbolizer = symbolizer.Symbolizer() |
jbudorick
2017/07/21 13:46:23
This should be None.
BigBossZhiling
2017/07/21 18:38:13
Done.
|
self._initializeTombstonesAttributes(args) |
self._gs_results_bucket = None |
@@ -624,6 +627,9 @@ class InstrumentationTestInstance(test_instance.TestInstance): |
def _initializeTombstonesAttributes(self, args): |
self._store_tombstones = args.store_tombstones |
+ self._symbolizer = symbolizer.Symbolizer( |
+ self.apk_under_test.path if self.apk_under_test else None, |
+ args.enable_relocation_packing) |
def _initializeLogAttributes(self, args): |
self._gs_results_bucket = args.gs_results_bucket |
@@ -716,6 +722,10 @@ class InstrumentationTestInstance(test_instance.TestInstance): |
def suite(self): |
return self._suite |
+ @property |
+ def symbolizer(self): |
+ return self._symbolizer |
+ |
@property |
def test_apk(self): |
return self._test_apk |