Adjust error detection after the stats reporting change in ndnping

Change-Id: I2d0a9825fe8d0b00c925259a42c2b6daad6709b8
diff --git a/test_linkfail/ping.sh b/test_linkfail/ping.sh
index 6d4779c..a7e083f 100755
--- a/test_linkfail/ping.sh
+++ b/test_linkfail/ping.sh
@@ -7,7 +7,7 @@
 
 ndnping -c 25 /B &> logs/${LOGPREFIX}_ping_A.log
 
-LOSS=$(sed -n 's/.*nacked, \([^,]*\) packet loss.*/\1/p' logs/${LOGPREFIX}_ping_A.log)
+LOSS=$(sed -n 's/.*nacked, \([^,]*\) lost.*/\1/p' logs/${LOGPREFIX}_ping_A.log)
 MAXRTT=$(sed -n 's/rtt.* = .*\/\([^)]*\).*\/.*/\1/p' logs/${LOGPREFIX}_ping_A.log)
 
 [[ $LOSS == '0%' ]] && [[ $(echo $MAXRTT | sed 's/\..*//') -le 100 ]]
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