run-tests-on-android.sh: ignore non-toybox failures for now.
This is just blkid and unzip for now. Will probably work on blkid in my
spare time. Might make sense to move the unzip tests back into unzip...
Test: manual
Change-Id: I16ab6a190670c6dcf829fb1f81390ae11b4dbdb8
diff --git a/run-tests-on-android.sh b/run-tests-on-android.sh
index f6bd800..3f0fd90 100755
--- a/run-tests-on-android.sh
+++ b/run-tests-on-android.sh
@@ -39,8 +39,10 @@
echo "-- $toy"
implementation=$(adb shell "realpath $location")
+ non_toy=false
if [ "$implementation" != "/system/bin/toybox" ]; then
echo "-- note: $toy is non-toybox implementation"
+ non_toy=true
fi
adb shell $dash_t "\
@@ -56,6 +58,8 @@
cd .. && rm -rf $toy"
if [ $? -eq 0 ]; then
pass_count=$(($pass_count+1))
+ elif [ "$non_toy" = "true" ]; then
+ non_toy_failures="$non_toy_failures $toy"
else
failures="$failures $toy"
fi
@@ -91,6 +95,9 @@
for failure in $failures; do
echo -e "${red}FAILED${plain}: $failure"
done
+for failure in $non_toy_failures; do
+ echo -e "${red}FAILED${plain}: $failure (ignoring)"
+done
# We should have run *something*...
if [ $pass_count -eq 0 ]; then exit 1; fi