Passing several commands from other section invoked as one-liner

Issue #239 on hold
P H created an issue

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'

Comments (5)

  1. Log in to comment