Workaround test failures on OSX controllers for now -- will have to look

more heavily into normailizing the unicode later.
pull/16093/head
Toshio Kuratomi 8 years ago
parent 7edfeb3665
commit 2a5ef4496a

@ -289,22 +289,22 @@
- name: create our unarchive destination - name: create our unarchive destination
file: file:
path: "{{ output_dir }}/test-unarchive-nonascii-àâæçéèïîôœ-tar-gz" path: "{{ output_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
state: directory state: directory
- name: test that unarchive works with an archive that contains non-ascii filenames - name: test that unarchive works with an archive that contains non-ascii filenames
unarchive: unarchive:
# Both the filename of the tarball and the filename inside the tarball have # Both the filename of the tarball and the filename inside the tarball have
# nonascii chars # nonascii chars
src: "test-unarchive-nonascii-àâæçéèïîôœ.tar.gz" src: "test-unarchive-nonascii-くらとみ.tar.gz"
dest: "{{ output_dir }}/test-unarchive-nonascii-àâæçéèïîôœ-tar-gz" dest: "{{ output_dir }}/test-unarchive-nonascii-くらとみ-tar-gz"
mode: "u+rwX,go+rX" mode: "u+rwX,go+rX"
copy: yes copy: yes
register: nonascii_result0 register: nonascii_result0
- name: Check that file is really there - name: Check that file is really there
stat: stat:
path: "{{ output_dir | expanduser }}/test-unarchive-nonascii-àâæçéèïîôœ-tar-gz/storage/àâæçéèïîôœ(copy)!@#$%^&-().jpg" path: "{{ output_dir | expanduser }}/test-unarchive-nonascii-くらとみ-tar-gz/storage/àâæçéèïîôœ(copy)!@#$%^&-().jpg"
register: nonascii_stat0 register: nonascii_stat0
- name: Assert that nonascii tests succeeded - name: Assert that nonascii tests succeeded
@ -314,7 +314,7 @@
- "nonascii_stat0.stat.exists == true" - "nonascii_stat0.stat.exists == true"
- name: remove nonascii test - name: remove nonascii test
file: path="{{ output_dir }}/test-unarchive-nonascii-àâæçéèïîôœ-tar-gz" state=absent file: path="{{ output_dir }}/test-unarchive-nonascii-くらとみ-tar-gz" state=absent
# Test that unarchiving is performed if files are missing # Test that unarchiving is performed if files are missing
# https://github.com/ansible/ansible-modules-core/issues/1064 # https://github.com/ansible/ansible-modules-core/issues/1064

Loading…
Cancel
Save