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:
Gareth J. Greenaway 2019-05-01 15:14:39 -07:00 committed by Ch3LL
parent 8a57270c1e
commit 4ec90c2d39
No known key found for this signature in database
GPG Key ID: 132B55A7C13EFA73
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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: