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

Unified Diff: build/android/pylib/junit/test_runner.py

Issue 2243353002: (Reland) Update all Robolectric tests to Robolectric 3.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/junit/test_runner.py
diff --git a/build/android/pylib/junit/test_runner.py b/build/android/pylib/junit/test_runner.py
index 9a60c12a991abd28ed2514689a7aa394c0c9ed2e..5066c2041235bf61cc682f4efcde1a431347bd86 100644
--- a/build/android/pylib/junit/test_runner.py
+++ b/build/android/pylib/junit/test_runner.py
@@ -46,6 +46,12 @@ class JavaTestRunner(object):
# Add JVM arguments.
jvm_args = []
+ # TODO(mikecase): Add a --robolectric-dep-dir arg to test runner.
+ # Have this arg set by GN in the generated test runner scripts.
+ jvm_args += [
+ '-Drobolectric.dependency.dir=%s' %
+ os.path.join(constants.GetOutDirectory(),
+ 'lib.java', 'third_party', 'robolectric')]
if self._coverage_dir:
if not os.path.exists(self._coverage_dir):
os.makedirs(self._coverage_dir)

Powered by Google App Engine
This is Rietveld 408576698