summaryrefslogtreecommitdiffstats
path: root/ttcn3-tcpdump-stop.sh
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-06-18 06:18:34 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-23 11:43:00 +0000
commitdadde174254636573f28907e0d8ae8c61486f6bb (patch)
tree585e5793c1a1ae845162f7bc1ce05953b71e2c46 /ttcn3-tcpdump-stop.sh
parent76a8d0160e6d53b5c709ae6a48942cc53987e384 (diff)
ttcn3-tcpdump-stop.sh: print colored verdict
Diffstat (limited to 'ttcn3-tcpdump-stop.sh')
-rwxr-xr-xttcn3-tcpdump-stop.sh8
1 files changed, 8 insertions, 0 deletions
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