summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2017-12-11 16:03:34 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-12-11 16:03:34 +0000
commit67b5d7a89619f027c01bf33adee3eb26a20ef4ab (patch)
tree8e3a8af05d74ed6a0eb5cbbc6f13a7f2d62b3ec1
parent08f3b459cfb4e8524bdcc244e894b8d7d13b62d8 (diff)
parentb78decf006ebb5a1eae61ab8ed0464855ed7b5e3 (diff)
downloadmisc-67b5d7a89619f027c01bf33adee3eb26a20ef4ab.tar.gz
Merge "Pin robotest-internal to OpenJDK 8."
-rw-r--r--common/robolectric/robotest-internal.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/robolectric/robotest-internal.mk b/common/robolectric/robotest-internal.mk
index 6fa89aa2..9a716cb4 100644
--- a/common/robolectric/robotest-internal.mk
+++ b/common/robolectric/robotest-internal.mk
@@ -35,6 +35,7 @@ $(my_target_output): \
$(my_target_output): \
PRIVATE_TIMEOUT := $(my_timeout)
# Runs the Robolectric tests and saves the output and return value.
+# Robolectric < 3.5.1 only supports OpenJDK 8. http://b/70286093
$(my_target_output) $(my_target_retval): \
$(my_jars)
$(hide) echo "host Robolectric: $(PRIVATE_MODULE) ($(dir $@))"
@@ -48,6 +49,7 @@ $(my_target_output) $(my_target_retval): \
PRIVATE_TARGET_MESSAGE="$(PRIVATE_TARGET_MESSAGE)" \
PRIVATE_TIMEOUT="$(PRIVATE_TIMEOUT)" \
PRIVATE_TESTS="$(PRIVATE_TESTS)" \
+ PATH=${ANDROID_JAVA8_HOME}/bin:${PATH} \
$(PRIVATE_ROBOLECTRIC_SCRIPT_PATH)/wrapper.sh \
"$(PRIVATE_MODULE)" \
"$(PRIVATE_TARGET_OUTPUT)" \