f2f6c34632
* check run state of current block only * Add changelog and test * Add test for issue 29047 * Fix for both tests * blerg * Change test messages * fix tests * Add multi-level block in rescue test case * Add recursive rescue check and multi-level test * Should probably run the new test * ci_complete * Merge new tests * ci_complete
33 lines
800 B
YAML
33 lines
800 B
YAML
- hosts: localhost
|
|
gather_facts: no
|
|
tasks:
|
|
- block:
|
|
- name: "EXPECTED FAILURE"
|
|
fail:
|
|
msg: "fail to test single level block in rescue"
|
|
rescue:
|
|
- block:
|
|
- debug:
|
|
msg: Rescued!
|
|
|
|
- block:
|
|
- name: "EXPECTED FAILURE"
|
|
fail:
|
|
msg: "fail to test multi-level block in rescue"
|
|
rescue:
|
|
- block:
|
|
- block:
|
|
- debug:
|
|
msg: Rescued!
|
|
|
|
- name: "Outer block"
|
|
block:
|
|
- name: "Inner block"
|
|
block:
|
|
- name: "EXPECTED FAILURE"
|
|
fail:
|
|
msg: "fail to test multi-level block"
|
|
rescue:
|
|
- name: "Rescue block"
|
|
block:
|
|
- debug: msg="Inner block rescue"
|