Change in osmo-ttcn3-hacks[master]: ttcn3-tcpdump-stop.sh: print colored verdict

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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Mon Jun 18 07:19:36 UTC 2018


Neels Hofmeyr has uploaded this change for review. ( https://gerrit.osmocom.org/9675


Change subject: ttcn3-tcpdump-stop.sh: print colored verdict
......................................................................

ttcn3-tcpdump-stop.sh: print colored verdict

Change-Id: I0d2d6171430f1eebb5377edac5e237a99ddbd743
---
M ttcn3-tcpdump-stop.sh
1 file changed, 8 insertions(+), 0 deletions(-)



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

diff --git a/ttcn3-tcpdump-stop.sh b/ttcn3-tcpdump-stop.sh
index a085bf7..9404841 100755
--- a/ttcn3-tcpdump-stop.sh
+++ b/ttcn3-tcpdump-stop.sh
@@ -2,6 +2,14 @@
 
 PIDFILE=/tmp/tcpdump.pid
 TESTCASE=$1
+VERDICT="$2"
+
+if [ x"$VERDICT" = x"pass" ]; then
+	echo "\033[1;32m====== $TESTCASE $VERDICT ======\033[0m"
+else
+	echo "\033[1;31m------ $TESTCASE $VERDICT ------\033[0m"
+fi
+echo
 
 if [ "z$TTCN3_PCAP_PATH" = "z" ]; then
 	TTCN3_PCAP_PATH=/tmp

-- 
To view, visit https://gerrit.osmocom.org/9675
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0d2d6171430f1eebb5377edac5e237a99ddbd743
Gerrit-Change-Number: 9675
Gerrit-PatchSet: 1
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180618/cc1ec185/attachment.htm>


More information about the gerrit-log mailing list