mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-02-21 14:08:31 +00:00
AVD test release builds as well
This commit is contained in:
parent
f80198a669
commit
d868ff3080
@ -69,7 +69,7 @@ run_test() {
|
|||||||
"$sdk" $pkg
|
"$sdk" $pkg
|
||||||
echo no | "$avd" create avd -f -n test -k $pkg
|
echo no | "$avd" create avd -f -n test -k $pkg
|
||||||
|
|
||||||
# Launch emulator and patch
|
# Launch emulator and patch with debug build
|
||||||
restore_avd
|
restore_avd
|
||||||
"$emu" @test $emu_args &
|
"$emu" @test $emu_args &
|
||||||
pid=$!
|
pid=$!
|
||||||
@ -85,9 +85,21 @@ run_test() {
|
|||||||
timeout $boot_timeout bash -c wait_for_boot
|
timeout $boot_timeout bash -c wait_for_boot
|
||||||
|
|
||||||
adb shell magisk -v
|
adb shell magisk -v
|
||||||
|
|
||||||
|
# Re-patch to test release build
|
||||||
|
./build.py -r avd_patch -s "$ramdisk"
|
||||||
kill -INT $pid
|
kill -INT $pid
|
||||||
wait $pid
|
wait $pid
|
||||||
|
|
||||||
|
# Test if it also boots properly
|
||||||
|
"$emu" @test $emu_args &
|
||||||
|
pid=$!
|
||||||
|
timeout $boot_timeout bash -c wait_for_boot
|
||||||
|
|
||||||
|
adb shell magisk -v
|
||||||
|
|
||||||
|
kill -INT $pid
|
||||||
|
wait $pid
|
||||||
restore_avd
|
restore_avd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user