Change in osmo-ttcn3-hacks[master]: ttcn3-tcpdump-stop.sh: fix echo: add -e to enable colors

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Thu May 21 13:38:41 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18384 )


Change subject: ttcn3-tcpdump-stop.sh: fix echo: add -e to enable colors
......................................................................

ttcn3-tcpdump-stop.sh: fix echo: add -e to enable colors

This change enables interpretation of backslash escapes for echo,
so the test case execution summary is always printed in color.

Change-Id: I0cc77b4de764c7afd6416512a181c4c1610ce369
---
M ttcn3-tcpdump-stop.sh
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/84/18384/1

diff --git a/ttcn3-tcpdump-stop.sh b/ttcn3-tcpdump-stop.sh
index 1f4da3d..30d331d 100755
--- a/ttcn3-tcpdump-stop.sh
+++ b/ttcn3-tcpdump-stop.sh
@@ -22,9 +22,9 @@
 date
 
 if [ x"$VERDICT" = x"pass" ]; then
-	echo "\033[1;32m====== $TESTCASE $VERDICT ======\033[0m"
+	echo -e "\033[1;32m====== $TESTCASE $VERDICT ======\033[0m"
 else
-	echo "\033[1;31m------ $TESTCASE $VERDICT ------\033[0m"
+	echo -e "\033[1;31m------ $TESTCASE $VERDICT ------\033[0m"
 fi
 echo
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18384
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I0cc77b4de764c7afd6416512a181c4c1610ce369
Gerrit-Change-Number: 18384
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200521/65b91a05/attachment.htm>


More information about the gerrit-log mailing list