mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
improve test_test_infra debug messaging, rc check
This commit is contained in:
@@ -3,14 +3,16 @@
|
||||
tags:
|
||||
- always
|
||||
tasks:
|
||||
- fail:
|
||||
- name: ensure fail action produces a failing result
|
||||
fail:
|
||||
ignore_errors: yes
|
||||
register: fail_out
|
||||
|
||||
- debug:
|
||||
msg: fail works ({{ fail_out.failed }})
|
||||
|
||||
- assert:
|
||||
- name: ensure assert produces a failing result
|
||||
assert:
|
||||
that: false
|
||||
ignore_errors: yes
|
||||
register: assert_out
|
||||
@@ -18,6 +20,7 @@
|
||||
- debug:
|
||||
msg: assert works ({{ assert_out.failed }})
|
||||
|
||||
- fail:
|
||||
msg: fail actually failed
|
||||
- name: ensure fail action stops execution
|
||||
fail:
|
||||
msg: fail actually failed (this is expected)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user