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 <[email protected]>