blob: 3ce834498d24d8d49a4cb64740e62ee6fd69fbc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
set -xeu -o pipefail
current_dir=`pwd`
cd ${WORKSPACE}
# Get CSIT branch from which to test from
# running build-root/scripts/csit-test-branch
if [ -f csit-test-branch ]; then
chmod +x csit-test-branch
CSIT_BRANCH=`./csit-test-branch`
fi
# Clone csit and start tests
git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}
# If the git clone fails, complain clearly and exit
if [ $? != 0 ]; then
echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}"
exit
fi
if [ ${STREAM} == 'master' ]; then
./csit/resources/tools/download_hc_build_pkgs.sh ${STREAM}
else
./csit/resources/tools/download_hc_build_pkgs.sh 'stable.'${STREAM}
fi
cd ${current_dir}
|