Split logs into test cases to prevent overwriting
refs #2907
Change-Id: Ia7ca07fe0d7cd7428dbba5db443e87983aaaca3f
diff --git a/test_localhop/localhop-test.sh b/test_localhop/localhop-test.sh
index 4c6d3d3..796fb95 100755
--- a/test_localhop/localhop-test.sh
+++ b/test_localhop/localhop-test.sh
@@ -77,7 +77,7 @@
# analyze server log
echo "analyzing server log..."
output=$(grep "Total Interests Received" $workdir/logs/server.log | head -2 | tail -1 | cut -d= -f2 | cut -d' ' -f2)
-if [ $output != 0?(.+(0)) ]
+if [[ $output != 0?(.+(0)) ]]
then
echo "Expected no interests with name ndn:/localhop/test-localhop/A/1 received on host C. Actual: $output"
echo "For more information, please examine the log at \"$(pwd)/logs\""