Files
poky/bitbake/lib/toaster/tox.ini
Alexander Lussier-Cullen 6a87f5d53b bitbake: toaster: make django temp directory configurable
Modify the django settings to make cache, logs and databases save
to a configurable directory with TOASTER_DJANGO_TMPDIR instead of
the machine root level /tmp directory.

In addition, add this variable to the passthroughs for tox.

This change is made to facilitate cleaning test files for runs on
the autobuilder and avoid errors involving the persisted database.

(Bitbake rev: 887aaa91fd54ef24fc3cce42d584b381e37d3343)

Signed-off-by: Alexander Lussier-Cullen <alexander.lussier-cullen@savoirfairelinux.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-23 15:25:01 +00:00

24 lines
675 B
INI

[tox]
envlist = py38, py39, py310, py311, py312
skipsdist = True
toxworkdir = {env:TOX_WORKDIR:.tox}
passenv = *
[testenv]
passenv =
SSTATE_DIR
DL_DIR
TOASTER_DJANGO_TMPDIR
setenv =
DJANGO_SETTINGS_MODULE=toastermain.settings_test
TOASTER_BUILDSERVER=1
BUILDDIR = {env:BUILDDIR}
EVENTREPLAY_DIR = {env:EVENTREPLAY_DIR:BUILDDIR}
commands =
python3 {toxinidir}/manage.py test tests.db tests.commands tests.builds tests.browser tests.functional tests.views
deps =
-r {toxinidir}/../../toaster-requirements.txt
-r {toxinidir}/tests/toaster-tests-requirements.txt
[testenv:chrome]
commands={[testenv]commands} --splinter-webdriver=chrome