From 7241d6cc35134fcb5ec6dfa81bbd01e430b2415f Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 15 Apr 2022 13:31:22 -0400 Subject: color: Support a separate $BFS_COLORS environment variable --- tests.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index c31d2c9..6d2c703 100755 --- a/tests.sh +++ b/tests.sh @@ -28,6 +28,9 @@ export MSAN_OPTIONS="abort_on_error=1" export TSAN_OPTIONS="abort_on_error=1" export UBSAN_OPTIONS="abort_on_error=1" +export LS_COLORS="" +unset BFS_COLORS + if [ -t 1 ]; then BLD=$(printf '\033[01m') RED=$(printf '\033[01;31m') @@ -2452,7 +2455,7 @@ function test_printf_must_be_numeric() { } function test_printf_color() { - LS_COLORS="" bfs_diff -color -path './rainbow*' -printf '%H %h %f %p %P %l\n' + bfs_diff -color -path './rainbow*' -printf '%H %h %f %p %P %l\n' } function test_fprintf() { @@ -2552,11 +2555,11 @@ function test_extra_paren() { } function test_color() { - LS_COLORS="" bfs_diff rainbow -color + bfs_diff rainbow -color } function test_color_L() { - LS_COLORS="" bfs_diff -L rainbow -color + bfs_diff -L rainbow -color } function test_color_rs_lc_rc_ec() { -- cgit v1.2.3