summaryrefslogtreecommitdiff
path: root/test/integration/targets/copy
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-01-23 10:08:16 -0800
committerGitHub <noreply@github.com>2018-01-23 10:08:16 -0800
commit4f6017dc1629361cce6fa3e2e035a4710550db9e (patch)
tree971cfbb1f4dfe03d5ee3cd67d4ca1dd6def7845f /test/integration/targets/copy
parent060001b08d98969217156b2b696613ade44eb8c5 (diff)
downloadansible-4f6017dc1629361cce6fa3e2e035a4710550db9e.tar.gz
Move requirements into tests. (#35197)
Diffstat (limited to 'test/integration/targets/copy')
-rw-r--r--test/integration/targets/copy/tasks/tests.yml6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/integration/targets/copy/tasks/tests.yml b/test/integration/targets/copy/tasks/tests.yml
index 2784febe80..43a763ea14 100644
--- a/test/integration/targets/copy/tasks/tests.yml
+++ b/test/integration/targets/copy/tasks/tests.yml
@@ -9,10 +9,6 @@
set_fact:
remote_file: "{{ remote_dir }}/foo.txt"
-- name: Locate sha1sum/shasum
- shell: which sha1sum || which shasum
- register: sha1sum
-
- name: Initiate a basic copy, and also test the mode
copy:
src: foo.txt
@@ -1127,7 +1123,7 @@
- stat_link_result.stat.islnk
- name: Get the checksum of the link target
- shell: "{{ sha1sum.stdout }} {{remote_dir}}/follow_test | cut -f1 -sd ' '"
+ shell: "{{ ansible_python_interpreter }} -c 'import hashlib; print(hashlib.sha1(open(\"{{remote_dir | expanduser}}/follow_test\", \"rb\").read()).hexdigest())'"
register: target_file_result
- name: Assert that the link target was updated