improve test_test_infra debug messaging, rc check

This commit is contained in:
nitzmahone
2016-03-18 08:50:07 -07:00
parent f82639e4a2
commit 6578e63e63
2 changed files with 9 additions and 5 deletions

View File

@@ -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)