From b8e1b4df5153d00eacdd37e77d9a680a76c95ecc Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 26 May 2019 12:06:14 +0100 Subject: [PATCH] issue #587: 2.8 whitespace handling was improved. https://github.com/ansible/ansible/commit/b72e989e1837ccad8dcdc926c43ccbc4d8cdfe44 --- tests/ansible/integration/async/runner_one_job.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/ansible/integration/async/runner_one_job.yml b/tests/ansible/integration/async/runner_one_job.yml index ca798a7f..3b14fa31 100644 --- a/tests/ansible/integration/async/runner_one_job.yml +++ b/tests/ansible/integration/async/runner_one_job.yml @@ -37,7 +37,12 @@ - result1.ansible_job_id == job1.ansible_job_id - result1.attempts <= 100000 - result1.changed == True - - result1.cmd == "sleep 1;\n echo alldone" + - | + # ansible/b72e989e1837ccad8dcdc926c43ccbc4d8cdfe44 + (ansible_version.full >= '2.8' and + result1.cmd == "sleep 1;\necho alldone\n") or + (ansible_version.full < '2.8' and + result1.cmd == "sleep 1;\n echo alldone") - result1.delta|length == 14 - result1.start|length == 26 - result1.finished == 1