Increased tolerance for node stop/start and for topology convergence.
Change-Id: Ie9ea56918011b9e34c5ed6a6d426199bfe3e26d9
diff --git a/tools/test/bin/onos-check-summary b/tools/test/bin/onos-check-summary
index c1139c3..69bc0ac 100755
--- a/tools/test/bin/onos-check-summary
+++ b/tools/test/bin/onos-check-summary
@@ -6,7 +6,7 @@
aux=/tmp/stc-$$.log
trap "rm -f $aux 2>/dev/null" EXIT
-for i in {1..10}; do
+for i in {1..15}; do
onos ${1:-$OCI} "onos:summary" > $aux
cat $aux
diff --git a/tools/test/bin/onos-wait-for-start b/tools/test/bin/onos-wait-for-start
index e643b5a..e0ebb54 100755
--- a/tools/test/bin/onos-wait-for-start
+++ b/tools/test/bin/onos-wait-for-start
@@ -13,13 +13,13 @@
ssh -t $remote "
# Wait until we reach the run-level 100
- for i in \$(seq 1 45); do
+ for i in {1..90}; do
$ONOS_INSTALL_DIR/bin/onos bundle:list 2>/dev/null | \
grep -q 'START LEVEL 100' && break || sleep 2
done
# Wait until ApplicationManager is available
- for i in \$(seq 1 10); do
+ for i in {1..10}; do
grep -q \" ApplicationManager .* Started\" \
$ONOS_INSTALL_DIR/log/karaf.log && break || sleep 1
done
diff --git a/tools/test/bin/onos-wait-for-stop b/tools/test/bin/onos-wait-for-stop
index a684c23..ebb1d6d 100755
--- a/tools/test/bin/onos-wait-for-stop
+++ b/tools/test/bin/onos-wait-for-stop
@@ -13,7 +13,7 @@
ssh -t $remote "
# Wait until ONOS Java process terminates
- for i in \$(seq 1 45); do
+ for i in {1..90}; do
ps -ef | egrep 'java .*/onos/.* org\.apache\.karaf\.main\.Main' | grep -qv grep || exit 0
sleep 1
done
diff --git a/tools/test/scenarios/ha-cluster-restart.xml b/tools/test/scenarios/ha-cluster-restart.xml
index 16b4b27..d042bbe 100644
--- a/tools/test/scenarios/ha-cluster-restart.xml
+++ b/tools/test/scenarios/ha-cluster-restart.xml
@@ -25,7 +25,9 @@
</parallel>
</group>
- <group name="Recover" requires="~Fail">
+ <step name="Breathe" exec="sleep 5" requires="~Fail"/>
+
+ <group name="Recover" requires="~Breathe,~Fail">
<parallel var="${OC#}">
<step name="Node-Start-${#}" exec="onos-service ${OC#} start"/>
<step name="Wait-for-Start-${#}" requires="~Node-Start-${#}"