Ray Milkey

Fixes to make STC runs more reliable

- make sure that ONOS_USE_SSH is set in the environment
- only wipe out data once mininet finishes shutting down

Change-Id: I6dfcd2c839cc00a975583cb93f16775d5fcadf94
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
17 <!-- TODO: parametrize this via recipes --> 17 <!-- TODO: parametrize this via recipes -->
18 <group name="Net-Setup"> 18 <group name="Net-Setup">
19 <step name="Push-Topos" exec="onos-push-topos ${OCN}"/> 19 <step name="Push-Topos" exec="onos-push-topos ${OCN}"/>
20 - <step name="Stop-Mininet-If-Needed" env="~" exec="onos-mininet stop"/>
21 20
22 - <step name="Wipe-Out-Data-Before" exec="onos-wipe-out"/> 21 + <step name="Stop-Mininet-If-Needed" env="~" exec="onos-mininet stop"/>
22 + <step name="Wipe-Out-Data-Before" exec="onos-wipe-out" requires="^"/>
23 23
24 <step name="Initial-Summary-Check" requires="~Wipe-Out-Data-Before" 24 <step name="Initial-Summary-Check" requires="~Wipe-Out-Data-Before"
25 exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/> 25 exec="onos-check-summary ${OC1} [0-9]* 0 0 0"/>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 --> 15 -->
16 <scenario name="prerequisites" description="ONOS test pre-requisites"> 16 <scenario name="prerequisites" description="ONOS test pre-requisites">
17 <group name="Prerequisites"> 17 <group name="Prerequisites">
18 - <step name="Check-Environment" exec="test -n ${ONOS_ROOT} -a -n ${ONOS_NIC} -a -n ${OC1}"/> 18 + <step name="Check-Environment" exec="test -n ${ONOS_ROOT} -a -n ${ONOS_NIC} -a -n ${OC1} -a '${ONOS_USE_SSH}' == 'true'"/>
19 <step name="Check-ONOS-Bits" exec="onos-check-bits"/> 19 <step name="Check-ONOS-Bits" exec="onos-check-bits"/>
20 20
21 <parallel var="${OC#}"> 21 <parallel var="${OC#}">
......