Federico Ressi 8e469b87a5 Separate roles in pre-run, run and post-run phases
Change-Id: Ibe539dd1a7be74be01310876ba04efba666f8bc1
2020-04-06 10:42:35 +02:00

29 lines
472 B
YAML

---
- block:
- name: "initialize test execution"
include_role:
name: tobiko-pre-run
- name: "run tests"
include_role:
name: tobiko-run
rescue:
- name: "finalize test execution"
include_role:
name: tobiko-post-run
ignore_errors: yes
- fail:
msg: 'TEST EXECUTION FAILED'
- name: "finalize test execution"
include_role:
name: tobiko-post-run
- debug:
msg: 'TEST EXECUTION SUCCEEDED'