mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Adding an jinja if statement to only the python parameter if the result from get_python_executable is a valid value. Maintaining backwards compatibilty to run tests without Nox.
This commit is contained in:
parent
8a57270c1e
commit
4ec90c2d39
@ -3,7 +3,9 @@
|
||||
- system_site_packages: False
|
||||
- distribute: True
|
||||
{#- Provide the real path for the python executable in case tests are running inside a virtualenv #}
|
||||
{%- if salt.runtests_helpers.get_python_executable() %}
|
||||
- python: {{ salt.runtests_helpers.get_python_executable() }}
|
||||
{%- endif %}
|
||||
|
||||
pep8-pip:
|
||||
pip.installed:
|
||||
|
@ -6,7 +6,9 @@
|
||||
- system_site_packages: False
|
||||
- distribute: True
|
||||
{#- Provide the real path for the python executable in case tests are running inside a virtualenv #}
|
||||
{%- if salt.runtests_helpers.get_python_executable() %}
|
||||
- python: {{ salt.runtests_helpers.get_python_executable() }}
|
||||
{%- endif %}
|
||||
|
||||
install_older_venv_1:
|
||||
pip.installed:
|
||||
|
Loading…
Reference in New Issue
Block a user