summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-04-15 13:31:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-04-15 14:45:08 -0400
commit7241d6cc35134fcb5ec6dfa81bbd01e430b2415f (patch)
tree3b3dbde25dff9430ca644f680249a6add224f213 /tests.sh
parenta571aa9ef6f3dc2099ee33c5040f8c54776ddece (diff)
downloadbfs-7241d6cc35134fcb5ec6dfa81bbd01e430b2415f.tar.xz
color: Support a separate $BFS_COLORS environment variable
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh9
1 files changed, 6 insertions, 3 deletions
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() {