]> git.lizzy.rs Git - rust.git/blob - src/ci/docker/scripts/android-start-emulator.sh
Rollup merge of #99113 - WaffleLapkin:arc_simplify, r=Mark-Simulacrum
[rust.git] / src / ci / docker / scripts / android-start-emulator.sh
1 #!/bin/sh
2
3 set -ex
4
5 # Setting SHELL to a file instead on a symlink helps android
6 # emulator identify the system
7 export SHELL=/bin/bash
8
9 # Using the default qemu2 engine makes time::tests::since_epoch fails because
10 # the emulator date is set to unix epoch (in armeabi-v7a-18 image). Using
11 # classic engine the emulator starts with the current date and the tests run
12 # fine. If another image is used, this need to be evaluated again.
13 nohup nohup emulator @armeabi-v7a-18 \
14     -engine classic -no-window -partition-size 2047 0<&- &>/dev/null &
15
16 exec "$@"