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

Unified Diff: build/android/pylib/instrumentation/instrumentation_test_instance.py

Issue 1964183003: Fixed coverage dir for instrumentation tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
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 610f084ba054b787488f49cc00ef860143db3396..502167bc3e5190e31b98ecd40099fe5f9cc2b8f0 100644
--- a/build/android/pylib/instrumentation/instrumentation_test_instance.py
+++ b/build/android/pylib/instrumentation/instrumentation_test_instance.py
@@ -239,6 +239,9 @@ class InstrumentationTestInstance(test_instance.TestInstance):
self._timeout_scale = None
self._initializeTestControlAttributes(args)
+ self._coverage_directory = None
+ self._initializeTestCoverageAttributes(args)
+
def _initializeApkAttributes(self, args, error_func):
if args.apk_under_test:
apk_under_test_path = args.apk_under_test
@@ -388,6 +391,9 @@ class InstrumentationTestInstance(test_instance.TestInstance):
def _initializeTestControlAttributes(self, args):
self._timeout_scale = args.timeout_scale or 1
+ def _initializeTestCoverageAttributes(self, args):
+ self._coverage_directory = args.coverage_dir
+
@property
def additional_apks(self):
return self._additional_apks
@@ -401,8 +407,8 @@ class InstrumentationTestInstance(test_instance.TestInstance):
return self._apk_under_test_incremental_install_script
@property
- def flags(self):
- return self._flags
+ def coverage_directory(self):
+ return self._coverage_directory
@property
def driver_apk(self):
@@ -417,6 +423,10 @@ class InstrumentationTestInstance(test_instance.TestInstance):
return self._driver_name
@property
+ def flags(self):
+ return self._flags
+
+ @property
def package_info(self):
return self._package_info

Powered by Google App Engine
This is Rietveld 408576698