2
0
mirror of https://github.com/topjohnwu/Magisk synced 2025-09-05 05:05:09 +00:00

Add regression test for #9179

This commit is contained in:
topjohnwu
2025-07-18 17:29:10 -07:00
committed by John Wu
parent 9ca469898c
commit cd9851a1fe
4 changed files with 18 additions and 5 deletions

View File

@@ -30,8 +30,16 @@ print_error() {
# $1 = TestClass#method
# $2 = component
am_instrument() {
set +x
local out=$(adb shell am instrument -w --user 0 -e class "$1" "$2")
grep -q 'OK (' <<< "$out"
echo "$out"
if grep -q 'OK (' <<< "$out"; then
set -x
return 0
else
set -x
return 1
fi
}
# $1 = pkg