Have the ART Buildbot generate ICU .dat files in /system/etc/icu on target.
Have tools/buildbot-build.sh build target `icu-data-art-test`, copying
ICU .dat prebuilt files into /system/etc/icu, so that they can be
found even if the Runtime APEX is not available, by setting the
environment variable `ART_TEST_ANDROID_RUNTIME_ROOT` to "/system" on
device.
This is a temporary change needed until the ART Buildbot fully
supports the Runtime APEX.
Test: Rely on the ART Buildbot.
Bug: 121117762
Bug: 119293618
Bug: 113373927
Change-Id: Ia1220751df80e47580f6d3c3e65c7169c61b8f3f
diff --git a/tools/buildbot-build.sh b/tools/buildbot-build.sh
index ce1a246..d4888f9 100755
--- a/tools/buildbot-build.sh
+++ b/tools/buildbot-build.sh
@@ -83,6 +83,15 @@
fi
# Build the Debug Runtime APEX (which is a superset of the Release Runtime APEX).
make_command+=" com.android.runtime.debug"
+ # Create a copy of the ICU .dat prebuilt files in /system/etc/icu on target,
+ # so that it can found even if the Runtime APEX is not available, by setting
+ # the environment variable `ART_TEST_ANDROID_RUNTIME_ROOT` to "/system" on
+ # device. This is a temporary change needed until both the ART Buildbot and
+ # Golem fully support the Runtime APEX.
+ #
+ # TODO(b/121117762): Remove this when the ART Buildbot and Golem have full
+ # support for the Runtime APEX.
+ make_command+=" icu-data-art-test"
mode_suffix="-target"
fi