From 4b86191a2424c5eec7d1a8d229fd4a3097969754 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 7 Jul 2016 13:40:58 -0500 Subject: [PATCH] Updating integration tests for async testing (cherry picked from commit cd4412016aea873669ec08d024b5a54581376c8d) --- test/integration/roles/test_async/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/roles/test_async/tasks/main.yml b/test/integration/roles/test_async/tasks/main.yml index 386f3109440..8aa8f60ece8 100644 --- a/test/integration/roles/test_async/tasks/main.yml +++ b/test/integration/roles/test_async/tasks/main.yml @@ -33,7 +33,7 @@ - "'cmd' in async_result" - "'delta' in async_result" - "'end' in async_result" - - "'finished' in async_result" + - "'finished' in async_result or async_result.finished == 1" - "'rc' in async_result" - "'start' in async_result" - "'stderr' in async_result" @@ -54,7 +54,7 @@ that: - "'ansible_job_id' in async_result" - "'started' in async_result" - - "'finished' not in async_result" + - "'finished' not in async_result or async_result.finished == 0" - name: test skipped task handling command: /bin/true