diff options
| -rwxr-xr-x | tools/run-jdwp-tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh index 9f1d2a7ab8..9ad9d66bd8 100755 --- a/tools/run-jdwp-tests.sh +++ b/tools/run-jdwp-tests.sh @@ -245,6 +245,11 @@ while true; do fi done +if [ ! -t 1 ] ; then + # Suppress color codes if not attached to a terminal + args="$args --no-color" +fi + if [[ $mode == "target" ]]; then # Honor environment variable ART_TEST_CHROOT. if [[ -n "$ART_TEST_CHROOT" ]]; then |