summaryrefslogtreecommitdiff
path: root/t/t5409-colorize-remote-messages.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-12-03 22:37:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-12-04 03:12:46 (GMT)
commit1f672904508c9c4e722efaf6bb8696b2e7b9d8e0 (patch)
treed5e190746775e5ff9ac6af5d6ebd3ebd2bd9b614 /t/t5409-colorize-remote-messages.sh
parent59a255aef05633c45c780987fa0c861cda9006f2 (diff)
downloadgit-1f672904508c9c4e722efaf6bb8696b2e7b9d8e0.zip
git-1f672904508c9c4e722efaf6bb8696b2e7b9d8e0.tar.gz
git-1f672904508c9c4e722efaf6bb8696b2e7b9d8e0.tar.bz2
sideband: color lines with keyword only
When bf1a11f0a1 (sideband: highlight keywords in remote sideband output, 2018-08-07) was introduced, it was carefully considered which strings would be highlighted. However 59a255aef0 (sideband: do not read beyond the end of input, 2018-08-18) brought in a regression that the original did not test for. A line containing only the keyword and nothing else ("SUCCESS") should still be colored. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5409-colorize-remote-messages.sh')
-rwxr-xr-xt/t5409-colorize-remote-messages.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t5409-colorize-remote-messages.sh b/t/t5409-colorize-remote-messages.sh
index f81b681..2a8c449 100755
--- a/t/t5409-colorize-remote-messages.sh
+++ b/t/t5409-colorize-remote-messages.sh
@@ -17,6 +17,7 @@ test_expect_success 'setup' '
echo " " "error: leading space"
echo " "
echo Err
+ echo SUCCESS
exit 0
EOF
echo 1 >file &&
@@ -35,6 +36,7 @@ test_expect_success 'keywords' '
grep "<BOLD;RED>error<RESET>: error" decoded &&
grep "<YELLOW>hint<RESET>:" decoded &&
grep "<BOLD;GREEN>success<RESET>:" decoded &&
+ grep "<BOLD;GREEN>SUCCESS<RESET>" decoded &&
grep "<BOLD;YELLOW>warning<RESET>:" decoded
'