From d868ff30800d1e6b2a699283874cebbbf9ea06af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=8B=E9=A1=B5?= Date: Mon, 9 Oct 2023 20:47:50 +0800 Subject: [PATCH] AVD test release builds as well --- scripts/avd_test.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/avd_test.sh b/scripts/avd_test.sh index 39fde5685..45138aea6 100755 --- a/scripts/avd_test.sh +++ b/scripts/avd_test.sh @@ -69,7 +69,7 @@ run_test() { "$sdk" $pkg echo no | "$avd" create avd -f -n test -k $pkg - # Launch emulator and patch + # Launch emulator and patch with debug build restore_avd "$emu" @test $emu_args & pid=$! @@ -85,9 +85,21 @@ run_test() { timeout $boot_timeout bash -c wait_for_boot adb shell magisk -v + + # Re-patch to test release build + ./build.py -r avd_patch -s "$ramdisk" kill -INT $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 }