567c3048f9
This makes a mess of the gating test sources, all for the sake of being able to run cgroups v1 tests. Signed-off-by: Ed Santiago <santiago@redhat.com>
22 lines
675 B
YAML
22 lines
675 B
YAML
---
|
|
# Copied from standard-test-basic
|
|
- name: check results
|
|
local_action: shell egrep "^(FAIL|ERROR)" "{{ artifacts }}/test.log"
|
|
register: test_fails
|
|
# Never fail at this step. Just store result of tests.
|
|
failed_when: False
|
|
|
|
- name: preserve results
|
|
set_fact:
|
|
role_result_failed: "{{ (test_fails.stdout|d|length > 0) or (test_fails.stderr|d|length > 0) }}"
|
|
role_result_msg: "{{ test_fails.stdout|d('tests failed.') }}"
|
|
|
|
- name: display results
|
|
vars:
|
|
msg: |
|
|
Tests failed: {{ role_result_failed|d('Undefined') }}
|
|
Tests msg: {{ role_result_msg|d('None') }}
|
|
debug:
|
|
msg: "{{ msg.split('\n') }}"
|
|
failed_when: "role_result_failed|bool"
|