diff --git a/tests/roles/ibus-desktop-testing-role/tasks/main.yml b/tests/roles/ibus-desktop-testing-role/tasks/main.yml index 0c75ad5..2949034 100644 --- a/tests/roles/ibus-desktop-testing-role/tasks/main.yml +++ b/tests/roles/ibus-desktop-testing-role/tasks/main.yml @@ -74,14 +74,13 @@ # Delete LC_CTYPE=C.UTF-8 export -n LC_CTYPE status="FAIL: frame" - sh -x ibus-desktop-testing-runner \ + ibus-desktop-testing-runner \ --no-graphics \ --runner=gnome \ --tests='{{ installed_test_name }}' \ --output='{{ remote_artifacts }}/{{ installed_test_name }}.log' \ --result='{{ remote_artifacts }}/test.log' \ --timeout=900 \ - >& '{{ remote_artifacts }}/foo.log' null if [ $? -eq 0 ]; then status="PASS: frame" @@ -97,14 +96,15 @@ cat {{ remote_artifacts }}/test.log fi echo "#" - echo "#### {{ remote_artifacts }}/foo.log" - if [ -f {{ remote_artifacts }}/foo.log ] ; then - cat {{ remote_artifacts }}/foo.log - fi - echo "#" + + - 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" + script: check-results.sh "{{ remote_artifacts }}/test.log" "0" 2>/dev/null register: test_fails failed_when: '"ERROR" in test_fails.stdout'