]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
teuthology.sh: Run tests using current branch
authorZack Cerza <zack@redhat.com>
Thu, 14 Apr 2022 19:19:24 +0000 (13:19 -0600)
committerZack Cerza <zack@redhat.com>
Thu, 14 Apr 2022 21:50:46 +0000 (15:50 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
docs/docker-compose/teuthology/teuthology.sh

index edc377b54eb6f708406bf4056efdae8ce2661286..682e5167da44e02e535a782a46307ddcb98ebe9b 100755 (executable)
@@ -5,6 +5,8 @@ if [ -n "$SSH_PRIVKEY_FILE" ]; then
 fi
 source /teuthology/virtualenv/bin/activate
 set -x
+cd /teuthology
+export TEUTHOLOGY_BRANCH=${TEUTHOLOGY_BRANCH:-$(git branch --show-current)}
 if [ -n "$TESTNODES" ]; then
     for node in $(echo $TESTNODES | tr , ' '); do
         teuthology-update-inventory -m $MACHINE_TYPE $node
@@ -15,6 +17,7 @@ else
 fi
 export MACHINE_TYPE=${MACHINE_TYPE:-testnode}
 teuthology-suite -v \
+    --teuthology-branch $TEUTHOLOGY_BRANCH \
     --ceph-repo https://github.com/ceph/ceph.git \
     --suite-repo https://github.com/ceph/ceph.git \
     -c master \