if [ ${STREAM} == 'master' ]; then
git clone https://gerrit.fd.io/r/csit --branch master
else
- git clone https://gerrit.fd.io/r/csit --branch 'rls'${STREAM}
+ git clone https://gerrit.fd.io/r/csit --branch 'rls'${STREAM}
+fi
# If the git clone fails, complain clearly and exit
if [ $? != 0 ]; then
# Get CSIT branch from which to test from
# running build-root/scripts/csit-test-branch
-if [ -x csit-test-branch ]; then
- CSIT_BRANCH=`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