From 1eb31249998aec1182533e5737b080e43218db1a Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 4 Dec 2014 10:53:48 -0800 Subject: [PATCH] Make test for skipping agree with the way current output formats a skip --- test/integration/roles/test_conditionals/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/integration/roles/test_conditionals/tasks/main.yml b/test/integration/roles/test_conditionals/tasks/main.yml index 90509d7f630..8d794e497fb 100644 --- a/test/integration/roles/test_conditionals/tasks/main.yml +++ b/test/integration/roles/test_conditionals/tasks/main.yml @@ -276,8 +276,9 @@ - name: assert the task was skipped assert: that: - - "'skipped' in result" - - result.results.skipped + - "result.results|length == 1" + - "'skipped' in result.results[0]" + - "result.results[0].skipped == True" - name: test a with_items loop skipping a single item debug: var=item