mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-29 13:27:38 +00:00
Add ability to skip certain test variants
This commit is contained in:
parent
8506b672ad
commit
ccdb0b5d13
@ -171,17 +171,21 @@ test_main() {
|
|||||||
emu_args="$emu_args -show-kernel -logcat '' -logcat-output logcat.log"
|
emu_args="$emu_args -show-kernel -logcat '' -logcat-output logcat.log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Patch and test debug build
|
if [ -z "$AVD_TEST_SKIP_DEBUG" ]; then
|
||||||
./build.py avd_patch -s "$ramdisk" magisk_patched.img
|
# Patch and test debug build
|
||||||
kill -INT $emu_pid
|
./build.py avd_patch -s "$ramdisk" magisk_patched.img
|
||||||
wait $emu_pid
|
kill -INT $emu_pid
|
||||||
test_emu debug $api
|
wait $emu_pid
|
||||||
|
test_emu debug $api
|
||||||
|
fi
|
||||||
|
|
||||||
# Patch and test release build
|
if [ -z "$AVD_TEST_SKIP_RELEASE" ]; then
|
||||||
./build.py -r avd_patch -s "$ramdisk" magisk_patched.img
|
# Patch and test release build
|
||||||
kill -INT $emu_pid
|
./build.py -r avd_patch -s "$ramdisk" magisk_patched.img
|
||||||
wait $emu_pid
|
kill -INT $emu_pid
|
||||||
test_emu release $api
|
wait $emu_pid
|
||||||
|
test_emu release $api
|
||||||
|
fi
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
kill -INT $emu_pid
|
kill -INT $emu_pid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user