File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 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 }}"
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
You can’t perform that action at this time.
0 commit comments