Browse Source

Merge "Updated from OpenStack Ansible Tests"

Zuul 6 months ago
parent
commit
b8e0c276fc
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      run_tests.sh

+ 2
- 1
run_tests.sh View File

@@ -33,6 +33,7 @@ set -xeu
33 33
 ## Vars ----------------------------------------------------------------------
34 34
 
35 35
 WORKING_DIR="$(readlink -f $(dirname $0))"
36
+OSA_PROJECT_NAME="$(sed -n 's|^project=openstack/\(.*\).git$|\1|p' $(pwd)/.gitreview)"
36 37
 
37 38
 COMMON_TESTS_PATH="${WORKING_DIR}/tests/common"
38 39
 TESTING_HOME=${TESTING_HOME:-$HOME}
@@ -69,7 +70,7 @@ which git &>/dev/null || eval sudo "${pkg_mgr_cmd}" git
69 70
 if [[ ! -d "${COMMON_TESTS_PATH}" ]]; then
70 71
     # The tests repo doesn't need a clone, we can just
71 72
     # symlink it.
72
-    if [[ "$(basename ${WORKING_DIR})" == "openstack-ansible-tests" ]]; then
73
+    if [[ "${OSA_PROJECT_NAME}" == "openstack-ansible-tests" ]]; then
73 74
         ln -s "${WORKING_DIR}" "${COMMON_TESTS_PATH}"
74 75
 
75 76
     # In zuul v3 any dependent repository is placed into

Loading…
Cancel
Save