Updated from OpenStack Ansible Tests
Change-Id: I356a36cc2584a92f199f227d0caefb1bcf8522be
This commit is contained in:
parent
e04749a9da
commit
567bf240c8
@ -33,6 +33,7 @@ set -xeu
|
|||||||
## Vars ----------------------------------------------------------------------
|
## Vars ----------------------------------------------------------------------
|
||||||
|
|
||||||
WORKING_DIR="$(readlink -f $(dirname $0))"
|
WORKING_DIR="$(readlink -f $(dirname $0))"
|
||||||
|
OSA_PROJECT_NAME="$(sed -n 's|^project=openstack/\(.*\).git$|\1|p' $(pwd)/.gitreview)"
|
||||||
|
|
||||||
COMMON_TESTS_PATH="${WORKING_DIR}/tests/common"
|
COMMON_TESTS_PATH="${WORKING_DIR}/tests/common"
|
||||||
TESTING_HOME=${TESTING_HOME:-$HOME}
|
TESTING_HOME=${TESTING_HOME:-$HOME}
|
||||||
@ -69,7 +70,7 @@ which git &>/dev/null || eval sudo "${pkg_mgr_cmd}" git
|
|||||||
if [[ ! -d "${COMMON_TESTS_PATH}" ]]; then
|
if [[ ! -d "${COMMON_TESTS_PATH}" ]]; then
|
||||||
# The tests repo doesn't need a clone, we can just
|
# The tests repo doesn't need a clone, we can just
|
||||||
# symlink it.
|
# symlink it.
|
||||||
if [[ "$(basename ${WORKING_DIR})" == "openstack-ansible-tests" ]]; then
|
if [[ "${OSA_PROJECT_NAME}" == "openstack-ansible-tests" ]]; then
|
||||||
ln -s "${WORKING_DIR}" "${COMMON_TESTS_PATH}"
|
ln -s "${WORKING_DIR}" "${COMMON_TESTS_PATH}"
|
||||||
|
|
||||||
# In zuul v3 any dependent repository is placed into
|
# In zuul v3 any dependent repository is placed into
|
||||||
|
Loading…
Reference in New Issue
Block a user