Skip to content

Commit 17f1b2a

Browse files
committed
[ansible-tests] Copy the XML files to the results dir
1 parent 0142d60 commit 17f1b2a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

container-images/tcib/base/ansible-tests/run_ansible.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,8 @@ ansible-playbook "$POD_ANSIBLE_PLAYBOOK" $ANSIBLE_DEBUG -i $ANSIBLE_DIR/inventor
6060
# Currently, the report-results has to be separate since the custom junit plugin will only create the XML files once the playbook is completed.
6161
# After FVT tests are run, there still needs to be a separate hook to check the results (including fetching the results from the pod)
6262
# or else there needs to be some mechanism here to check the results.
63+
# the testoperator expects results files to be in /var/lib/AnsibleTests/external_files/ and this will get copied to cifmw-data/logs
64+
# So the sequence here should be: configure the FVTs to use /var/lib/AnsibleTests/external_files/ as the output dir
65+
# Run the playbook
66+
# run report_results to make the pod fail
67+
cp ~/.ansible.log/ /var/lib/AnsibleTests/external_files/

zuul.d/job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
vars: &edpm_vars
2222
cifmw_run_test_role: test_operator
2323
cifmw_test_operator_stages:
24-
- name: FVTAnsibleTest
24+
- name: "fvtansibletests"
2525
type: ansibletest
2626
cifmw_test_operator_tempest_registry: "{{ content_provider_os_registry_url | split('/') | first }}"
2727
cifmw_test_operator_tempest_namespace: "{{ content_provider_os_registry_url | split('/') | last }}"

zuul.d/projects.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- .coveragerc
1919
- LICENSE
2020
- OWNERS*
21-
- tcib-crc-podified-edpm-baremetal:
22-
irrelevant-files: *if
21+
#- tcib-crc-podified-edpm-baremetal:
22+
# irrelevant-files: *if
2323
- tcib-podified-multinode-edpm-deployment-crc:
2424
irrelevant-files: *if

0 commit comments

Comments
 (0)