tests: import custom binaries for tests

Same for async tests.
This commit is contained in:
David Wilson 2018-09-11 06:40:56 +01:00
parent dfb4930fce
commit 21a7aac220
2 changed files with 30 additions and 8 deletions

View File

@ -5,10 +5,21 @@
any_errors_fatal: true
tasks:
- custom_binary_producing_json:
- block:
- custom_binary_producing_json_Darwin:
async: 100
poll: 0
register: job
register: job_darwin
- set_fact: job={{job_darwin}}
when: ansible_system == "Darwin"
- block:
- custom_binary_producing_json_Linux:
async: 100
poll: 0
register: job_linux
- set_fact: job={{job_linux}}
when: ansible_system == "Linux"
- assert:
that: |

View File

@ -5,10 +5,21 @@
any_errors_fatal: true
tasks:
- custom_binary_producing_junk:
- block:
- custom_binary_producing_junk_Darwin:
async: 100
poll: 0
register: job
register: job_darwin
- set_fact: job={{job_darwin}}
when: ansible_system == "Darwin"
- block:
- custom_binary_producing_junk_Linux:
async: 100
poll: 0
register: job_linux
- set_fact: job={{job_linux}}
when: ansible_system == "Linux"
- shell: sleep 1