Adjust error detection after the stats reporting change in ndnping
Change-Id: I2d0a9825fe8d0b00c925259a42c2b6daad6709b8
diff --git a/test_permanent_face/permanent-face-test.sh b/test_permanent_face/permanent-face-test.sh
index 66542ae..9315ee4 100755
--- a/test_permanent_face/permanent-face-test.sh
+++ b/test_permanent_face/permanent-face-test.sh
@@ -29,7 +29,7 @@
echo $pingOutput >> $testLogA
# fail the scenario if loss rate is more than 15%
-loss=$(echo $pingOutput | grep -i 'packet loss' | grep -Po '\d*%' | sed 's/%//')
+loss=$(echo $pingOutput | grep -i 'lost' | grep -Po '\d*%' | sed 's/%//')
echo "LOSS rate of first ping is: $loss" >> $testLogA
if [[ $loss -gt 15 ]]; then
echo "LOSS rate is greater than 15. FAILED!" >> $testLogA
@@ -47,7 +47,7 @@
echo $pingOutput >> $testLogA
# fail the scenario if loss rate is less than 100%
-loss=$(echo $pingOutput | grep -i 'packet loss' | grep -Po '\d*%' | sed 's/%//')
+loss=$(echo $pingOutput | grep -i 'lost' | grep -Po '\d*%' | sed 's/%//')
echo "LOSS rate of second ping is: $loss" >> $testLogA
if [[ $loss -lt 100 ]]; then
echo "LOSS rate is less than 100. FAILED!" >> $testLogA
@@ -69,7 +69,7 @@
echo $pingOutput >> $testLogA
# fail the scenario if loss rate is more than 15%
-loss=$(echo $pingOutput | grep -i 'packet loss' | grep -Po '\d*%' | sed 's/%//')
+loss=$(echo $pingOutput | grep -i 'lost' | grep -Po '\d*%' | sed 's/%//')
echo "LOSS rate of third ping is: $loss" >> $testLogA
if [[ $loss -gt 15 ]]; then
echo "LOSS rate is greater than 15. FAILED!" >> $testLogA