Merge remote-tracking branch 'origin/issue527'
* origin/issue527: docs: update Changelog; closes #527. issue #527: catch new-style module tracebacks like vanilla.pull/530/head^2
commit
a6fd080b3a
@ -0,0 +1,18 @@
|
||||
# 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"
|
Loading…
Reference in New Issue