summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2016-03-31 16:00:33 -0400
committerJames Cammarata <jimi@sngx.net>2016-03-31 16:00:33 -0400
commit9b7f466116f62f502eb92c0332758de92eebfe0c (patch)
treeaea54f234620333baabcc5567cd3aea0f72dd770
parent4e12168b3c6ebc04b6476af3c4116963e4268c20 (diff)
downloadansible-9b7f466116f62f502eb92c0332758de92eebfe0c.tar.gz
Updating the test_script integration tests with the version from devel
-rw-r--r--test/integration/roles/test_script/tasks/main.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/integration/roles/test_script/tasks/main.yml b/test/integration/roles/test_script/tasks/main.yml
index ffbe40d600..2c0f1f02ad 100644
--- a/test/integration/roles/test_script/tasks/main.yml
+++ b/test/integration/roles/test_script/tasks/main.yml
@@ -58,12 +58,14 @@
- name: remove afile.txt with remote_afile.sh via command
script: remove_afile.sh {{output_dir_test | expanduser}}/afile.txt removes={{output_dir_test | expanduser}}/afile.txt
+ register: script_result1
- name: verify that afile.txt is absent
file: path={{output_dir_test}}/afile.txt state=absent
- register: script_result1
+ register: script_result2
- name: assert that the file was removed by the script
assert:
that:
- - "script_result1.changed != True"
+ - "script_result1|changed"
+ - "script_result2.state == 'absent'"