Fix ansible-lint test failures
With the merge of https://review.openstack.org/520177 in the tests repo some ansible-lint failures which previously were not being picked up are now detected. Change-Id: I5e24ce49f6200d85a186c6b67e5d3036db6d05bb
This commit is contained in:
parent
1b4770087b
commit
06a6106364
|
@ -28,14 +28,17 @@
|
|||
exit 1
|
||||
fi
|
||||
with_items: "{{ tempest_plugins }}"
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: List the contents of the tempest_result_path folder
|
||||
command: "ls -1 {{ tempest_log_dir }}/"
|
||||
find:
|
||||
paths: "{{ tempest_log_dir }}"
|
||||
register: _results_list
|
||||
|
||||
- name: Check whether the expected subunit result files are present
|
||||
assert:
|
||||
that: "item in _results_list.stdout_lines"
|
||||
that: "item in _results_list.files | map(attribute='path') | map('basename') | list"
|
||||
msg: "{{ item }} must be present in {{ tempest_log_dir }}"
|
||||
with_items:
|
||||
- "testr_results.html"
|
||||
|
|
Loading…
Reference in New Issue