From 1f672904508c9c4e722efaf6bb8696b2e7b9d8e0 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Mon, 3 Dec 2018 14:37:13 -0800 Subject: 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 Signed-off-by: Junio C Hamano --- t/t5409-colorize-remote-messages.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 't/t5409-colorize-remote-messages.sh') diff --git a/t/t5409-colorize-remote-messages.sh b/t/t5409-colorize-remote-messages.sh index f81b6813c0..2a8c449661 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 "error: error" decoded && grep "hint:" decoded && grep "success:" decoded && + grep "SUCCESS" decoded && grep "warning:" decoded ' -- cgit v1.2.3