CSIT: Make script inclusion more readable
[ci-management.git] / jjb / scripts / csit / nsh_sfc-perf-hw.sh
1 #!/bin/bash
2
3 # Copyright (c) 2020 Cisco and/or its affiliates.
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 # execute  nsh_sfc bootstrap script if it exists
17 if [ ! -e bootstrap-verify-perf-nsh_sfc.sh ]
18 then
19     echo 'ERROR: No bootstrap-verify-perf-nsh_sfc.sh found'
20     exit 1
21 fi
22
23 # make sure that bootstrap-verify-perf.sh is executable
24 chmod +x bootstrap-verify-perf-nsh_sfc.sh
25 # run the script
26 if [ ${STREAM} == 'master' ]; then
27     ./bootstrap-verify-perf-nsh_sfc.sh ${STREAM} ${OS}
28 else
29     ./bootstrap-verify-perf-nsh_sfc.sh 'stable.'${STREAM} ${OS}
30 fi
31
32 # vim: ts=4 ts=4 sts=4 et :