Uninstall backports.lzma in archive test.

This avoids breaking other tests which depend on backports
modules, since the backports.lzma module is currently
incompatible with other backports modules.
This commit is contained in:
Matt Clay 2018-01-22 11:37:18 -08:00
parent bcd883ce5e
commit f2f743aef0

View file

@ -62,6 +62,7 @@
- name: Ensure backports.lzma is present to create test archive (pip)
pip: name=backports.lzma state=latest
when: ansible_python_version.split('.')[0] == '2'
register: backports_lzma_pip
- name: prep our file
copy: src={{ item }} dest={{output_dir}}/{{ item }}
@ -328,3 +329,7 @@
- name: remove nonascii test
file: path="{{ output_dir }}/test-archive-nonascii-くらとみ.zip" state=absent
- name: Remove backports.lzma if previously installed (pip)
pip: name=backports.lzma state=absent
when: backports_lzma_pip is changed