diff --git a/tests/roles/ibus-desktop-testing-role/tasks/main.yml b/tests/roles/ibus-desktop-testing-role/tasks/main.yml index cc69d11..cbe8746 100644 --- a/tests/roles/ibus-desktop-testing-role/tasks/main.yml +++ b/tests/roles/ibus-desktop-testing-role/tasks/main.yml @@ -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: