ttcn3-tcpdump-stop.sh: print colored verdict

Change-Id: I0d2d6171430f1eebb5377edac5e237a99ddbd743
This commit is contained in:
Neels Hofmeyr 2018-06-18 06:18:34 +02:00 committed by Harald Welte
parent 76a8d0160e
commit dadde17425
1 changed files with 8 additions and 0 deletions

View File

@ -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