Merge changes I6ba143f5,I3f2398d5,I13a06f60
* changes:
Merge remote-tracking branch 'toybox/master' into HEAD
netcat: Add UNIX domain socket support (-U)
More toysh flow control plumbing.
diff --git a/run-tests-on-android.sh b/run-tests-on-android.sh
index cc42c68..50654f0 100755
--- a/run-tests-on-android.sh
+++ b/run-tests-on-android.sh
@@ -13,9 +13,15 @@
# Make a temporary directory on the device.
tmp_dir=`adb shell mktemp --directory /data/local/tmp/toybox-tests-tmp.XXXXXXXXXX`
-green="\033[1;32m"
-red="\033[1;31m"
-plain="\033[0m"
+if [ tty -s ]; then
+ green="\033[1;32m"
+ red="\033[1;31m"
+ plain="\033[0m"
+else
+ green=""
+ red=""
+ plain=""
+fi
test_toy() {
toy=$1