From ccdb0b5d13ac41fc348e4f68c151cc00a0405173 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Wed, 25 Dec 2024 04:51:57 -0800 Subject: [PATCH] Add ability to skip certain test variants --- scripts/avd_test.sh | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/scripts/avd_test.sh b/scripts/avd_test.sh index 0ce4a3410..fb6e9f7e9 100755 --- a/scripts/avd_test.sh +++ b/scripts/avd_test.sh @@ -171,17 +171,21 @@ test_main() { emu_args="$emu_args -show-kernel -logcat '' -logcat-output logcat.log" fi - # Patch and test debug build - ./build.py avd_patch -s "$ramdisk" magisk_patched.img - kill -INT $emu_pid - wait $emu_pid - test_emu debug $api + if [ -z "$AVD_TEST_SKIP_DEBUG" ]; then + # Patch and test debug build + ./build.py avd_patch -s "$ramdisk" magisk_patched.img + kill -INT $emu_pid + wait $emu_pid + test_emu debug $api + fi - # Patch and test release build - ./build.py -r avd_patch -s "$ramdisk" magisk_patched.img - kill -INT $emu_pid - wait $emu_pid - test_emu release $api + if [ -z "$AVD_TEST_SKIP_RELEASE" ]; then + # Patch and test release build + ./build.py -r avd_patch -s "$ramdisk" magisk_patched.img + kill -INT $emu_pid + wait $emu_pid + test_emu release $api + fi # Cleanup kill -INT $emu_pid