tests: modify pb to move results to always run

The "Prepare results.yml in STI format" task in sssd-tasks.yml was set
to run after the pytest task.  If pytest failed, the results were not
properly prepared and caused processing issues with the log results.
Moving the task to under always section.

Related: rhbz#2127510
This commit is contained in:
Scott Poore 2022-11-04 11:09:58 -05:00
parent 5974ce9186
commit 70d23470fd
1 changed files with 1 additions and 1 deletions

View File

@ -105,6 +105,7 @@
--multihost-config=/tmp/mhc.yaml \
"{{ test_dir }}" 1> "{{ remote_artifacts }}/test.log"
always:
- name: Prepare results.yml in STI format
shell: |
echo "results:" > "{{ remote_artifacts }}/results.yml"
@ -119,7 +120,6 @@
done
unset IFS
always:
- name: copy sssd logs to "{{ remote_artifacts }}"
command: cp -a /var/log/sssd {{ remote_artifacts }}