debian-forge-composer/schutzbot/test_runner_base.yml
Lars Karlitski e4df938152 schutzbot: remove all timeouts except the global one
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
2020-05-20 07:21:13 -05:00

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 }}