start.sh: Don't double-clone teuthology
@@ -3,10 +3,12 @@ set -e
if [ -z "$TEUTHOLOGY_BRANCH" -a -n "$GITHUB_HEAD_REF" ]; then
TEUTHOLOGY_BRANCH=${GITHUB_HEAD_REF}
fi
+if [ ! -d ./teuthology ]; then
git clone \
--depth 1 \
-b ${TEUTHOLOGY_BRANCH:-$(git branch --show-current)} \
https://github.com/ceph/teuthology.git
+fi
cp .teuthology.yaml teuthology/
cp Dockerfile teuthology/
