Replace virtualenv-tools by a script
virtualenv-tools has a bug which gets triggered in gates: it can't change the shebang of a virtualenv python bin/ files if they were generated with a virtualenv script whose shebang ends with python2 instead of python. Because we can't modify virtualenv-tools, we use shell scripts instead. Change-Id: Icbe6b72cebede21de7a63f3a5340ee11a50e6fd3 Partial-Bug: #1741634
This commit is contained in:
parent
866dedbcba
commit
4314c3e47f
|
@ -156,7 +156,6 @@ tempest_requires_pip_packages:
|
|||
- python-novaclient
|
||||
- shade
|
||||
- virtualenv
|
||||
- virtualenv-tools
|
||||
|
||||
tempest_pip_packages:
|
||||
- ddt
|
||||
|
|
|
@ -107,9 +107,12 @@
|
|||
- tempest_get_venv | changed
|
||||
|
||||
- name: Update virtualenv path
|
||||
command: >
|
||||
virtualenv-tools --update-path=auto --reinitialize {{ tempest_venv_bin | dirname }}
|
||||
shell: |
|
||||
find {{ tempest_venv_bin }} -name \*.pyc -delete
|
||||
sed -si '1s/^.*python.*$/#!{{ tempest_venv_bin | replace ('/','\/') }}\/python/' {{ tempest_venv_bin }}/*
|
||||
when: tempest_get_venv | changed
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Get tempest plugins from git
|
||||
git:
|
||||
|
|
Loading…
Reference in New Issue