Thomas Vachuska | 4be3054 | 2015-10-21 18:15:52 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | ~ Copyright 2015-present Open Networking Laboratory |
Thomas Vachuska | 4be3054 | 2015-10-21 18:15:52 -0700 | [diff] [blame] | 3 | ~ |
| 4 | ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | ~ you may not use this file except in compliance with the License. |
| 6 | ~ You may obtain a copy of the License at |
| 7 | ~ |
| 8 | ~ http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | ~ |
| 10 | ~ Unless required by applicable law or agreed to in writing, software |
| 11 | ~ distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | ~ See the License for the specific language governing permissions and |
| 14 | ~ limitations under the License. |
| 15 | --> |
| 16 | <scenario name="example" description="sequential scenario example"> |
| 17 | <group name="Wrapup"> |
| 18 | <!-- 'starts' is a comma-separated list of patterns that name steps starting the current iteration of the sequence --> |
| 19 | <!-- 'ends' is a comma-separated list of patterns that name steps ending the previous iteration of the sequence --> |
| 20 | <!-- In this example each Final-Check-Logs-(N) will become dependent on Fetch-Logs-(N-1), for N > 1 --> |
| 21 | <sequential var="${OC#}" starts="Final-Check-Logs-${#}" ends="Fetch-Logs-${#-1}"> |
| 22 | <step name="Final-Check-Logs-${#}" exec="onos-check-logs ${OC#}"/> |
| 23 | <step name="Fetch-Logs-${#}" exec="onos-fetch-logs ${OC#}" |
| 24 | cwd="${WORKSPACE}/tmp/stc" requires="~^"/> |
| 25 | </sequential> |
| 26 | </group> |
| 27 | </scenario> |