Resolves: RHEL-1616 test20

This commit is contained in:
Takao Fujiwara 2025-04-15 18:49:22 +09:00
parent 02411b5b57
commit 1a1e401a5a

View File

@ -109,21 +109,15 @@
src: check-results.sh
dest: ./
- name: Execute IBus tests #2
shell: |
set -e
sh -x ./check-results.sh "{{ remote_artifacts }}/test.log" "0" >foo.log
cat foo.log
- name: Check the results
script: check-results.sh "{{ remote_artifacts }}/test.log" "0" 2>/dev/null
script: ./check-results.sh "{{ remote_artifacts }}/test.log" "0" 2>/dev/null
register: test_fails
failed_when: '"ERROR" in test_fails.stdout'
- name: Set role result
set_fact:
role_result: "{{ test_fails.stdout }}"
role_result_failed: "{{ (test_fails.stdout|d|length > 0) or (test_fails.stderr|d|length > 0) }}"
role_result_failed: false
role_result_msg: "{{ test_fails.stdout|d('tests failed.') }}"
- include_role: