Skip to content

Commit

Permalink
fixup! upstream CI: Use start.sh script and environment template
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Oct 15, 2024
1 parent 942d509 commit 04b9528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
7 changes: 6 additions & 1 deletion infra/azure/templates/playbook_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@ jobs:
distro: ${{ parameters.distro }}
ansible_version: ${{ parameters.ansible_version }}
python_version: ${{ parameters.python_version }}
filter_tests: ${{ parameters.filter_tests }}

- script: |
[ "${{ parameters.filter_tests }}" == "true" ] && . utils/set_test_modules
python3 utils/check_test_configuration.py ${{ parameters.distro }}
displayName: Check test configuration
- script: |
[ "${{ parameters.filter_tests }}" == "true" ] && . utils/set_test_modules
pytest \
-m "${{ parameters.test_type }}" \
--verbose \
Expand Down
9 changes: 0 additions & 9 deletions infra/azure/templates/prepare_environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ parameters:
default: 3.x
- name: build_number
type: string
- name: filter_tests
type: boolean
default: true

steps:
- task: UsePythonVersion@0
Expand All @@ -31,9 +28,3 @@ steps:

- script: infra/image/start.sh ${{ parameters.distro }}-server
displayName: Setup target container for ${{ parameters.distro }}

- script: . utils/set_test_modules
condition: ${{ eq(parameters.filter_tests, true) }}

- script: python3 utils/check_test_configuration.py ${{ parameters.distro }}
displayName: Check test configuration

0 comments on commit 04b9528

Please sign in to comment.