Skip to content

Commit 263a9fc

Browse files
committed
Auto merge of #40971 - malbarbo:android-emulator-64, r=alexcrichton
Use 64 bits emulator to run android tests Also install headless jre instead of the full jre.
2 parents 5309a3e + 113b3b4 commit 263a9fc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/ci/docker/arm-android/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN dpkg --add-architecture i386 && \
1313
cmake \
1414
unzip \
1515
expect \
16-
openjdk-9-jre \
16+
openjdk-9-jre-headless \
1717
sudo \
1818
libstdc++6:i386 \
1919
xz-utils \

src/ci/docker/arm-android/start-emulator.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
# except according to those terms.
1111

1212
set -ex
13-
ANDROID_EMULATOR_FORCE_32BIT=true \
14-
nohup nohup emulator @arm-18 -no-window -partition-size 2047 \
15-
0<&- &>/dev/null &
13+
14+
# Setting SHELL to a file instead on a symlink helps android
15+
# emulator identify the system
16+
export SHELL=/bin/bash
17+
nohup nohup emulator @arm-18 -no-window -partition-size 2047 0<&- &>/dev/null &
1618
exec "$@"

0 commit comments

Comments
 (0)