Merge "Introducing common functions"
authorRyota Mibu <r-mibu@cq.jp.nec.com>
Thu, 8 Dec 2016 20:30:07 +0000 (20:30 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 8 Dec 2016 20:30:07 +0000 (20:30 +0000)
1  2 
tests/run.sh

diff --cc tests/run.sh
@@@ -489,11 -475,10 +475,10 @@@ END_TX
  }
  
  calculate_notification_time() {
 -    detected=$(grep "doctor monitor detected at" monitor.log | awk '{print $5}')
 -    notified=$(grep "doctor consumer notified at" consumer.log | awk '{print $5}')
 +    detected=$(grep "doctor monitor detected at" monitor.log | awk '{print $10}')
 +    notified=$(grep "doctor consumer notified at" consumer.log | awk '{print $10}')
      if ! grep -q "doctor consumer notified at" consumer.log ; then
-         echo "ERROR: consumer hasn't received fault notification."
-         exit 1
+         die $LINENO "Consumer hasn't received fault notification."
      fi
      echo "$notified $detected" | \
          awk '{