Ray Milkey
Committed by Gerrit Code Review

Make test a little more resilient in the face of flows being slow to be installed

Change-Id: Ic1a2fda1226e6a6c452bd37e6d010e2066239204
......@@ -9,7 +9,13 @@ trap "rm -f $aux 2>/dev/null" EXIT
onos ${1:-$OCI} "onos:flows" > $aux
cat $aux
let status=0
grep "PENDING_" $aux && let status=status+1
exit $status
\ No newline at end of file
for i in {1..5}; do
let status=0
grep "PENDING_" $aux && let status=status+1
if [ "$status" == "0" ]
then
exit 0
fi
sleep 5
done
exit 1
......
......@@ -40,7 +40,7 @@
<step name="Balance-Masters" requires="~Check-Summary" if="${OC2}"
exec="onos ${OC1} balance-masters"/>
<step name="Check-Flows" requires="~Balance-Masters,~Check-Summary" delay="10"
<step name="Check-Flows" requires="~Balance-Masters,~Check-Summary" delay="5"
exec="onos-check-flows ${OC1}"/>
</group>
</scenario>
......