Skip to content

Commit 9d71b45

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
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/

0 commit comments

Comments
 (0)