summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariano Pérez Rodríguez <mariano-perez-rodriguez@users.noreply.github.com>2014-08-05 09:50:44 -0300
committerantirez <antirez@gmail.com>2014-08-25 10:14:03 +0200
commit5afe1e37c7f04224831d6e0e34579e4ce496d006 (patch)
treeffafb7e285b0b8ee27b3e674e8ecc834b58afdd0
parent681de88df4814a4a6e794a07530a3865ef515d2c (diff)
downloadredis-5afe1e37c7f04224831d6e0e34579e4ce496d006.tar.gz
Stop tests from leaving a black background
Uses ANSI "default background" color code after closing tests so any non-black terminals don't remain polluted. Fixes #1649 Closes #1912
-rw-r--r--tests/support/util.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/support/util.tcl b/tests/support/util.tcl
index 7774dd99a..4b9caced8 100644
--- a/tests/support/util.tcl
+++ b/tests/support/util.tcl
@@ -353,7 +353,7 @@ proc colorstr {color str} {
default {set colorcode {37}}
}
if {$colorcode ne {}} {
- return "\033\[$b;${colorcode};40m$str\033\[0m"
+ return "\033\[$b;${colorcode};49m$str\033\[0m"
}
} else {
return $str