You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
535 B
YAML
19 lines
535 B
YAML
6 years ago
|
# issue #527: catch exceptions from crashy modules.
|
||
|
|
||
|
- name: integration/runner/crashy_new_style_module.yml
|
||
|
hosts: test-targets
|
||
|
tasks:
|
||
|
- custom_python_run_script:
|
||
|
script: kaboom
|
||
|
register: out
|
||
|
ignore_errors: true
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- not out.changed
|
||
|
- out.rc == 1
|
||
|
- out.msg == "MODULE FAILURE"
|
||
|
- out.module_stdout == ""
|
||
|
- "'Traceback (most recent call last)' in out.module_stderr"
|
||
|
- "\"NameError: name 'kaboom' is not defined\" in out.module_stderr"
|