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

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: 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..89e7b4b2997db7c9cc692c448d73ee8a4a282921 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,12 @@ 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
+
+ def CoverageDirectory(self):
mikecase (-- gone --) 2016/05/11 17:39:58 Nit: To keep with the style of much of the other c
jbudorick 2016/05/17 00:07:33 this, and also alphabetize it within the other pro
BigBossZhiling 2016/05/20 18:38:08 Done.
+ return self._coverage_directory
+
@property
def additional_apks(self):
return self._additional_apks

Powered by Google App Engine
This is Rietveld 408576698