mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-27 15:40:32 +00:00
Only specify ADB port for tests
This commit is contained in:
@@ -4,10 +4,7 @@ set -e
|
|||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
. scripts/test_common.sh
|
. scripts/test_common.sh
|
||||||
|
|
||||||
emu_port=5682
|
emu_args_base="-no-window -no-audio -no-boot-anim -gpu swiftshader_indirect -read-only -no-snapshot -cores $core_count"
|
||||||
export ANDROID_SERIAL="emulator-$emu_port"
|
|
||||||
|
|
||||||
emu_args_base="-no-window -no-audio -no-boot-anim -gpu swiftshader_indirect -read-only -no-snapshot -port $emu_port -cores $core_count"
|
|
||||||
log_args="-show-kernel -logcat '' -logcat-output logcat.log"
|
log_args="-show-kernel -logcat '' -logcat-output logcat.log"
|
||||||
emu_args=
|
emu_args=
|
||||||
emu_pid=
|
emu_pid=
|
||||||
@@ -175,6 +172,11 @@ test_main() {
|
|||||||
local avd_pkg ramdisk
|
local avd_pkg ramdisk
|
||||||
eval $(resolve_vars "emu_args avd_pkg ramdisk" $1 $2)
|
eval $(resolve_vars "emu_args avd_pkg ramdisk" $1 $2)
|
||||||
|
|
||||||
|
# Specify an explicit port so that tests can run with other emulators running at the same time
|
||||||
|
local emu_port=5682
|
||||||
|
emu_args="$emu_args -port $emu_port"
|
||||||
|
export ANDROID_SERIAL="emulator-$emu_port"
|
||||||
|
|
||||||
setup_emu "$avd_pkg"
|
setup_emu "$avd_pkg"
|
||||||
|
|
||||||
# Restart ADB daemon just in case
|
# Restart ADB daemon just in case
|
||||||
|
|||||||
Reference in New Issue
Block a user