blob: af1342c73050065df74ef0df119d8e257d62b6ff [file] [log] [blame]
Thomas Vachuska4be30542015-10-21 18:15:52 -07001<!--
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 ~ Copyright 2015-present Open Networking Foundation
Thomas Vachuska4be30542015-10-21 18:15:52 -07003 ~
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>