tests: tidy up thread_pileup for use as a toy benchmark.

pull/233/head
David Wilson 7 years ago
parent 90f7b4baea
commit baa4e75526

@ -10,20 +10,22 @@
- name: Create file tree - name: Create file tree
connection: local connection: local
shell: > shell: >
mkdir filetree; mkdir /tmp/filetree.in;
for i in `seq 1 1000` ; do echo $i > filetree/$i ; done seq -f /tmp/filetree.in/%g 1 1000 | xargs touch;
args: args:
creates: filetree creates: /tmp/filetree.in
- name: Delete remote file tree - name: Delete remote file tree
shell: rm -rf /tmp/filetree shell: rm -rf /tmp/filetree.out
- file:
state: directory
path: /tmp/filetree.out
- name: Trigger nasty process pileup - name: Trigger nasty process pileup
synchronize: copy:
src: "{{ item.src }}" src: "{{item.src}}"
dest: "/tmp/filetree" dest: "/tmp/filetree.out/{{item.path}}"
with_filetree: with_filetree:
- filetree - /tmp/filetree.in
when: item.state == 'file' when: item.state == 'file'

Loading…
Cancel
Save