issue #477: fix 2 runner tests on Ansible 2.7.

issue510
David Wilson 6 years ago
parent 84a0424749
commit 51294db52d

@ -25,8 +25,8 @@
any_errors_fatal: true any_errors_fatal: true
tasks: tasks:
- assert: - assert:
that: | that:
out.failed and - out.failed
out.results[0].failed and - out.results[0].failed
out.results[0].msg == 'MODULE FAILURE' and - out.results[0].msg.startswith('MODULE FAILURE')
out.results[0].rc == 0 - out.results[0].rc == 0

@ -14,7 +14,7 @@
that: that:
- "out.failed" - "out.failed"
- "out.results[0].failed" - "out.results[0].failed"
- "out.results[0].msg == 'MODULE FAILURE'" - "out.results[0].msg.startswith('MODULE FAILURE')"
- "out.results[0].module_stdout.startswith('/bin/sh: ')" - "out.results[0].module_stdout.startswith('/bin/sh: ')"
- | - |
out.results[0].module_stdout.endswith('/custom_binary_single_null: cannot execute binary file\r\n') or out.results[0].module_stdout.endswith('/custom_binary_single_null: cannot execute binary file\r\n') or

Loading…
Cancel
Save