diff --git a/run_tests.sh b/run_tests.sh index 35cb8c382..d97685163 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -109,13 +109,13 @@ if [ -d /home/zuul/src/opendev.org ]; then cp -R /home/zuul/src/opendev.org/openstack/tempest /tmp/openstack/tempest else git clone https://opendev.org/openstack/tempest /tmp/openstack/tempest - fi - # Pin Tempest to TEMPEST_VERSION unless we're running inside the - # openstack/tempest gate. - if [[ "${ZUUL_PROJECT}" != "openstack/tempest" ]]; then - pushd /tmp/openstack/tempest - git reset --hard $TEMPEST_VERSION - popd + # Pin Tempest to TEMPEST_VERSION unless we're running inside the + # openstack/tempest gate. + if [[ "${ZUUL_PROJECT}" != "openstack/tempest" ]]; then + pushd /tmp/openstack/tempest + git reset --hard $TEMPEST_VERSION + popd + fi fi fi else