fix traffic generator output parsing
refs #2832
Change-Id: If00b8afb8855ec1cf33bcd8100c89c22656e486e
diff --git a/test_tcp_udp_tunnel/tcp-udp-tunnel-test.sh b/test_tcp_udp_tunnel/tcp-udp-tunnel-test.sh
index 96bbd76..1e8f9dd 100755
--- a/test_tcp_udp_tunnel/tcp-udp-tunnel-test.sh
+++ b/test_tcp_udp_tunnel/tcp-udp-tunnel-test.sh
@@ -66,7 +66,7 @@
# examine client log
echo "analyzing results..."
output=$(grep "Total Interest Loss" $workdir/logs/client.log | head -1 | cut -d= -f2 | cut -d' ' -f2 | cut -d% -f1)
-if [ $output != '0' ]
+if [[ $output != 0?(.+(0)) ]]
then
echo "Expected no Interest Loss. Actual: $output%"
echo "For more information, please examine the log at \"$(pwd)/logs\""