diff --git a/tests/ansible/integration/async/result_binary_producing_json.yml b/tests/ansible/integration/async/result_binary_producing_json.yml index 61d63a08..a53923d6 100644 --- a/tests/ansible/integration/async/result_binary_producing_json.yml +++ b/tests/ansible/integration/async/result_binary_producing_json.yml @@ -5,10 +5,21 @@ any_errors_fatal: true tasks: - - custom_binary_producing_json: - async: 100 - poll: 0 - register: job + - block: + - custom_binary_producing_json_Darwin: + async: 100 + poll: 0 + 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: | diff --git a/tests/ansible/integration/async/result_binary_producing_junk.yml b/tests/ansible/integration/async/result_binary_producing_junk.yml index 37f31704..e1628501 100644 --- a/tests/ansible/integration/async/result_binary_producing_junk.yml +++ b/tests/ansible/integration/async/result_binary_producing_junk.yml @@ -5,10 +5,21 @@ any_errors_fatal: true tasks: - - custom_binary_producing_junk: - async: 100 - poll: 0 - register: job + - block: + - custom_binary_producing_junk_Darwin: + async: 100 + poll: 0 + 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