Warn on Verity
(This is a merge of http://go/wvgerrit/16496 ) run_all_unit_tests.sh now aborts and alerts the user if they have Verity on, as opposed to its current behavior of failing later when the tests don't copy over successfully. Bug: 23420350 Change-Id: Ib01d32caaac462974b051f5d019888f7c47bc745
This commit is contained in:
@@ -34,7 +34,15 @@ if [ -z "$ANDROID_BUILD_TOP" ]; then
|
||||
fi
|
||||
|
||||
echo "waiting for device"
|
||||
adb root && adb wait-for-device remount
|
||||
ADB_OUTPUT=`adb root && adb wait-for-device remount`
|
||||
echo $ADB_OUTPUT
|
||||
if echo $ADB_OUTPUT | grep -qi "verity"; then
|
||||
echo
|
||||
echo "ERROR: This device has Verity enabled. run_all_unit_tests.sh does not "
|
||||
echo "work if Verity is enabled. Please disable Verity with"
|
||||
echo "\"adb disable-verity\" and try again."
|
||||
exit -1
|
||||
fi
|
||||
|
||||
adb_shell_run GTEST_FILTER="$GTEST_FILTER:*Level1Required" FORCE_LEVEL3_OEMCRYPTO=yes \
|
||||
/system/bin/oemcrypto_test
|
||||
|
||||
Reference in New Issue
Block a user