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) |