Ray Milkey
Committed by Gerrit Code Review

Give intents a little more time to complete

Change-Id: Ibe69a777105198ab42b9408f9fa9bc1e2bd93696
...@@ -26,7 +26,7 @@ for i in {1..15}; do ...@@ -26,7 +26,7 @@ for i in {1..15}; do
26 onos $target "onos:intents" | tee $aux 26 onos $target "onos:intents" | tee $aux
27 if [ -z "$numIntentsExpected" ]; then 27 if [ -z "$numIntentsExpected" ]; then
28 ( cat $aux | grep "key=$2" | grep "state=$3" ) && cat $aux && exit 0 28 ( cat $aux | grep "key=$2" | grep "state=$3" ) && cat $aux && exit 0
29 - else 29 + else
30 # exit 0 only if expected number of intents (with required key) 30 # exit 0 only if expected number of intents (with required key)
31 # are present and all intents match state (if expected no. of intents > 0) 31 # are present and all intents match state (if expected no. of intents > 0)
32 numIntents=`grep "key=$2" $aux | wc -l` 32 numIntents=`grep "key=$2" $aux | wc -l`
...@@ -35,8 +35,8 @@ for i in {1..15}; do ...@@ -35,8 +35,8 @@ for i in {1..15}; do
35 [ $numIntents -eq $numIntentsOfState ] \ 35 [ $numIntents -eq $numIntentsOfState ] \
36 && [ $numIntents -eq $numIntentsExpected ] \ 36 && [ $numIntents -eq $numIntentsExpected ] \
37 && cat $aux && exit 0 37 && cat $aux && exit 0
38 - fi 38 + fi
39 - sleep 1 39 + sleep 2
40 done 40 done
41 41
42 cat $aux 42 cat $aux
......