issue #275: Don't run virtualnv test on 2.6.

pull/287/head
David Wilson 6 years ago
parent b7eb96d116
commit 4f57c59b7e

@ -13,6 +13,7 @@ import sys
def main():
module = AnsibleModule(argument_spec={})
module.exit_json(
python_version=sys.version[:3],
argv=sys.argv,
__file__=__file__,
argv_types=[str(type(s)) for s in sys.argv],

@ -2,20 +2,26 @@
any_errors_fatal: true
hosts: test-targets
tasks:
- custom_python_detect_environment:
register: lout
# Can't use pip module because you can't fricking just create a virtualenv,
# must call it directly.
# Can't use pip module because it can't create virtualenvs, must call it
# directly.
- shell: virtualenv /tmp/issue_152_virtualenv
when: lout.python_version != '2.6'
- custom_python_detect_environment:
vars:
ansible_python_interpreter: /tmp/issue_152_virtualenv/bin/python
register: out
when: lout.python_version != '2.6'
- assert:
that:
- out.sys_executable == "/tmp/issue_152_virtualenv/bin/python"
when: lout.python_version != '2.6'
- file:
path: /tmp/issue_152_virtualenv
state: absent
when: lout.python_version != '2.6'

Loading…
Cancel
Save