diff options
Diffstat (limited to 'tests/test-libtextstyle.c')
-rw-r--r-- | tests/test-libtextstyle.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-libtextstyle.c b/tests/test-libtextstyle.c index 970713f821..a6567f9f5a 100644 --- a/tests/test-libtextstyle.c +++ b/tests/test-libtextstyle.c @@ -57,7 +57,9 @@ main (int argc, char *argv[]) #if HAVE_LIBTEXTSTYLE if (color_mode == color_yes - || (color_mode == color_tty && isatty (STDOUT_FILENO)) + || (color_mode == color_tty + && isatty (STDOUT_FILENO) + && getenv ("NO_COLOR") == NULL) || color_mode == color_html) { /* If no style file is explicitly specified, use the default in the |