Skip to content

Commit fdce8e3

Browse files
committed
Make the SCT host test results readable - alternative way.
1 parent a32fba2 commit fdce8e3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

etc/kayobe/ansible/stackhpc-cloud-tests.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@
126126
# and allow us to execute all tests from a single host.
127127
# https://testinfra.readthedocs.io/en/latest/backends.html#connection-backends
128128
- name: Run StackHPC Cloud host tests
129-
ansible.builtin.shell:
130-
cmd: |
129+
ansible.builtin.command:
130+
cmd: >
131131
{{ sct_venv }}/bin/py.test
132132
--html={{ results_tmpdir.path }}/host-{{ inventory_hostname }}.html
133133
--self-contained-html
134134
--timeout {{ sct_timeout }}
135135
-vv
136-
"{{ repo_tmpdir.path }}/stackhpc_cloud_tests/host";
137-
chmod 644 {{ results_tmpdir.path }}/host-{{ inventory_hostname }}.html
136+
"{{ repo_tmpdir.path }}/stackhpc_cloud_tests/host"
137+
# chmod 644 {{ results_tmpdir.path }}/host-{{ inventory_hostname }}.html
138138
environment:
139139
DOCKER_VERSION_MIN: "{{ sct_docker_version_min }}"
140140
DOCKER_VERSION_MAX: "{{ sct_docker_version_max }}"
@@ -150,6 +150,11 @@
150150
when: "'overcloud' in group_names"
151151
# Some checks may need root hence we chmod the resulting html for reading
152152
become: true
153+
# Host test results will be owned by root and unreadable - fix this
154+
- name: Make StackHPC Cloud host test results readable
155+
ansible.builtin.command:
156+
cmd: chmod 644 {{ results_tmpdir.path }}/host-{{ inventory_hostname }}.html
157+
become: true
153158

154159
always:
155160
- name: Synchronize results

0 commit comments

Comments
 (0)