Skip to content

Commit

Permalink
fixup! STILL NEED SOME WORK
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Oct 30, 2024
1 parent cada6d1 commit 73aab02
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions infra/azure/templates/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ jobs:
ansible_version: ${{ parameters.ansible_version }}
python_version: ${{ parameters.python_version }}

- bash: echo "##vso[task.setvariable variable=TOPDIR]${PWD}"

- script: |
. "${TOPDIR}/utils/set_test_modules"
python3 utils/check_test_configuration.py ${{ parameters.distro }}
Expand All @@ -54,7 +52,6 @@ jobs:
- script: |
git fetch --unshallow
utils/build-galaxy-release.sh -i
cd ~/.ansible/collections/ansible_collections/freeipa/ansible_freeipa
retryCountOnTaskFailure: 5
displayName: Build Galaxy release
condition: ${{ parameters.test_galaxy }}
Expand All @@ -66,6 +63,7 @@ jobs:
echo "LIBRARY: ${ANSIBLE_LIBRARY}"
echo "MODULE_UTILS: ${ANSIBLE_MODULE_UTILS}"
. "${TOPDIR}/utils/set_test_modules"
[ "${{ parameters.test_galaxy }}" == "True" ] && cd ~/.ansible/collections/ansible_collections/freeipa/ansible_freeipa
pytest \
-m "${{ parameters.test_type }}" \
--verbose \
Expand All @@ -78,9 +76,10 @@ jobs:
displayName: Run playbook tests
env:
SKIP_GIT_TEST: ${{ parameters.skip_git_test }}
ANSIBLE_ROLES_PATH: "${PWD}/roles"
ANSIBLE_LIBRARY: "${PWD}/plugins"
ANSIBLE_MODULE_UTILS: "${PWD}/plugins/module_utils"
${{ if eq(${{parameters.test_galaxy }}, False) }}:
ANSIBLE_ROLES_PATH: "${PWD}/roles"
ANSIBLE_LIBRARY: "${PWD}/plugins"
ANSIBLE_MODULE_UTILS: "${PWD}/plugins/module_utils"
IPA_SERVER_HOST: ansible-freeipa-tests
RUN_TESTS_IN_DOCKER: podman
IPA_DISABLED_MODULES: ${{ variables.ipa_disabled_modules }}
Expand Down

0 comments on commit 73aab02

Please sign in to comment.