New issue 239: Passing several commands from other section invoked as one-liner
https://bitbucket.org/hpk42/tox/issue/239/passing-several-commands-from-other
Przemek Hejman:
it seems like passing commands from other section with:
```
[testenv:smoketests]
setenv=
DJANGO_CONFIGURATION=ProductTestsSqlite
commands =
python manage.py reset_db --noinput
py.cleanup -p
python manage.py syncdb --no-initial-data --noinput
python manage.py migrate --noinput
python manage.py load_all_fixtures
py.cleanup -p
python manage.py reset_db --noinput
[testenv:smoketests-without-bug-in-tox]
setenv=
DJANGO_CONFIGURATION=ProductSDKTestsSqlite
commands =
{[smoketests]commands}
```
inovkes all commands separated with newline **as a one, single-lined
command**, because I get following errors:
```
ERROR: InvocationError: '/.toxenv/bin/python manage.py reset_db --noinput
py.cleanup -p python manage.py syncdb --no-initial-data --noinput python
manage.py migrate --noinput python manage.py load_all_fixtures py.cleanup -p
python manage.py reset_db --noinput'
```
Responsible: RonnyPfannschmidt
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit