Merge "Run unit tests if verity has already been disabled" into main

This commit is contained in:
Rahul Frias
2024-03-08 22:30:45 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ m -j $NUM_CORES $WV_UNITTESTS
echo "waiting for device"
ADB_OUTPUT=`adb $SERIAL_NUM root && echo ". " && adb $SERIAL_NUM wait-for-device remount`
echo $ADB_OUTPUT
if echo $ADB_OUTPUT | grep -qi "verity"; then
if echo $ADB_OUTPUT | grep -qi "verity" | grep -vi "Verity is already disabled"; then
echo
echo "ERROR: This device has Verity enabled. build_and_run_all_unit_tests.sh "
echo "does not work if Verity is enabled. Please disable Verity with"

View File

@@ -68,7 +68,7 @@ fi
echo "waiting for device"
ADB_OUTPUT=`adb $SERIAL_NUM root && echo ". " && adb $SERIAL_NUM wait-for-device remount`
echo $ADB_OUTPUT
if echo $ADB_OUTPUT | grep -qi "verity"; then
if echo $ADB_OUTPUT | grep -qi "verity" | grep -vi "Verity is already disabled"; 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"