run-tests-on-android.sh: fix tty test.
Test: manual Change-Id: I4a2b11590be65022678f30e6acbdd5655bb33348
This commit is contained in:
parent
be2958ac07
commit
6f8fa1ee20
@ -13,7 +13,7 @@ adb push scripts/runtest.sh /data/local/tmp/toybox-tests/
|
|||||||
# Make a temporary directory on the device.
|
# Make a temporary directory on the device.
|
||||||
tmp_dir=`adb shell mktemp --directory /data/local/tmp/toybox-tests-tmp.XXXXXXXXXX`
|
tmp_dir=`adb shell mktemp --directory /data/local/tmp/toybox-tests-tmp.XXXXXXXXXX`
|
||||||
|
|
||||||
if [ tty -s ]; then
|
if tty -s; then
|
||||||
green="\033[1;32m"
|
green="\033[1;32m"
|
||||||
red="\033[1;31m"
|
red="\033[1;31m"
|
||||||
plain="\033[0m"
|
plain="\033[0m"
|
||||||
|
Loading…
Reference in New Issue
Block a user