When we ran into these timeouts, they were always false negatives. It is hard to find right values for them. If someone does introduce a bug that hangs one of the tests, we still have the global timeout. Fixes #648
34 lines
838 B
YAML
34 lines
838 B
YAML
---
|
|
|
|
- block:
|
|
|
|
- name: "Run {{ test }} test"
|
|
command: "{{ tests_path }}/{{ test }} -test.v"
|
|
args:
|
|
chdir: "{{ tests_working_directory }}"
|
|
register: test_cmd
|
|
|
|
- name: "Mark {{ test }} as passed"
|
|
set_fact:
|
|
passed_tests: "{{ passed_tests + [test] }}"
|
|
|
|
rescue:
|
|
|
|
- name: "Mark {{ test }} as failed"
|
|
set_fact:
|
|
failed_tests: "{{ failed_tests + [test] }}"
|
|
|
|
always:
|
|
|
|
- name: "Write log for {{ test }}"
|
|
copy:
|
|
dest: "{{ workspace }}/{{ test }}.log"
|
|
content: |
|
|
Logs from {{ test }}
|
|
----------------------------------------------------------------------
|
|
stderr:
|
|
{{ test_cmd.stderr }}
|
|
----------------------------------------------------------------------
|
|
stdout:
|
|
{{ test_cmd.stdout }}
|
|
|