From: Stephen Finucane Date: Fri, 19 May 2017 14:54:08 +0000 (+0100) Subject: tox: Remove '--liveserver' parameter X-Git-Tag: v2.1.0-rc1~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=636276eba009ff524ea1096d730a5a0d21859a8e;p=thirdparty%2Fpatchwork.git tox: Remove '--liveserver' parameter This parameter is no longer supported in Django 1.11 [1]. Remove this and instead set the 'DJANGO_LIVE_TEST_SERVER_ADDRESS' environment variable, which will do the same thing for Django < 1.11 and be ignored by Django >= 1.11. [1] https://docs.djangoproject.com/en/1.11/releases/1.11/#liveservertestcase-binds-to-port-zero Signed-off-by: Stephen Finucane Tested-by: Daniel Axtens --- diff --git a/tox.ini b/tox.ini index fbcf9b36..3ae660b8 100644 --- a/tox.ini +++ b/tox.ini @@ -20,14 +20,14 @@ deps = setenv = DJANGO_SETTINGS_MODULE = patchwork.settings.dev PYTHONDONTWRITEBYTECODE = 1 + DJANGO_LIVE_TEST_SERVER_ADDRESS = localhost:9000-9200 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY PW_TEST_DB_TYPE PW_TEST_DB_USER PW_TEST_DB_PASS PW_TEST_DB_HOST PW_TEST_DB_PORT DISPLAY SELENIUM_BROWSER PW_SKIP_BROWSER_TESTS DISPLAY HOME XAUTHORITY commands = - python -Wonce {toxinidir}/manage.py test --noinput \ - --liveserver=localhost:9000-9200 '{posargs:patchwork}' + python -Wonce {toxinidir}/manage.py test --noinput '{posargs:patchwork}' [testenv:bashate] deps = bashate>=0.5,<0.6