| |
@@ -32,13 +32,15 @@
|
| |
with_items:
|
| |
- "{{ tests }}"
|
| |
|
| |
+ always:
|
| |
- include_role:
|
| |
name: str-common
|
| |
tasks_from: end.yml
|
| |
|
| |
- # Can't go in block. See
|
| |
- # https://github.com/ansible/ansible/issues/20736
|
| |
- - name: Check the results
|
| |
+ # This task must be run at the end. This playbook must fail if one of the
|
| |
+ # tests was failed.
|
| |
+ - name: Check that all tests have PASS status
|
| |
shell: grep "^FAIL" {{ remote_artifacts }}/test.log
|
| |
register: test_fails
|
| |
failed_when: test_fails.stdout or test_fails.stderr
|
| |
+ # After this task cannot follow any more tasks.
|
| |
Signed-off-by: Andrei Stepanov astepano@redhat.com