Blame tests/roles/custom-test-fonts/tasks/main.yml
Branch: 7649bd5b26e2098c1a4a5a574b7dfc8a27e902a8
Akira TAGOH
7649bd5
---
Akira TAGOH
7649bd5
Akira TAGOH
7649bd5
- block:
Akira TAGOH
7649bd5
- name: language coverage
Akira TAGOH
7649bd5
script: run-lang-coverage-test --lang "{{ item }}" --path "{{ path_prefix }}" --artifactsdir "{{ remote_artifacts }}" {{ "" if coverage.values is not defined and coverage[item].ignore is not defined else "--ignore " + (coverage[item].ignore | join('--ignore ')) }}
Akira TAGOH
7649bd5
with_items:
Akira TAGOH
7649bd5
- "{{ coverage if coverage.keys is not defined else coverage.keys()|list }}"
Akira TAGOH
7649bd5
- name: generic family assignment
Akira TAGOH
7649bd5
script: run-family-test --lang {{ item.lang }} --family '{{ item.family }}' --alias {{ item.alias }} --artifactsdir {{ remote_artifacts }} --package {{ package }}
Akira TAGOH
7649bd5
with_items:
Akira TAGOH
7649bd5
- "{{ families }}"
Akira TAGOH
7649bd5
Akira TAGOH
7649bd5
- name: Check the results
Akira TAGOH
7649bd5
shell: |
Akira TAGOH
7649bd5
log="{{ remote_artifacts }}/test.log"
Akira TAGOH
7649bd5
if [ ! -f "$log" ]; then
Akira TAGOH
7649bd5
echo ERROR
Akira TAGOH
7649bd5
echo "Test results not found." 1>&2
Akira TAGOH
7649bd5
elif grep ^ERROR "$log" 1>&2; then
Akira TAGOH
7649bd5
echo ERROR
Akira TAGOH
7649bd5
elif grep ^FAIL "$log" 1>&2; then
Akira TAGOH
7649bd5
echo FAIL
Akira TAGOH
7649bd5
elif grep -q ^PASS "$log"; then
Akira TAGOH
7649bd5
echo PASS
Akira TAGOH
7649bd5
else
Akira TAGOH
7649bd5
echo ERROR
Akira TAGOH
7649bd5
echo "No test results found." 1>&2
Akira TAGOH
7649bd5
fi
Akira TAGOH
7649bd5
register: test_results
Akira TAGOH
7649bd5
Akira TAGOH
7649bd5
- name: Set role result
Akira TAGOH
7649bd5
set_fact:
Akira TAGOH
7649bd5
role_result: "{{ test_results.stdout }}"
Akira TAGOH
7649bd5
role_message: "{{ test_results.stderr|d('test execution error.') }}"
Akira TAGOH
7649bd5
role_result_failed: "{{ test_results.stdout != 'PASS' }}"
Akira TAGOH
7649bd5
role_result_msg: "{{ test_results.stderr|d('test execution error.') }}"
Akira TAGOH
7649bd5
Akira TAGOH
7649bd5
- include_role:
Akira TAGOH
7649bd5
name: str-common-final