SOLAR_DB from env in testr execution if defined

Tox passes env SOLAR_DB to testenv,

Change-Id: Ib267fcd3b6df1133ac592f41aa4a9a407de23e03
This commit is contained in:
Jedrzej Nowak 2015-12-17 13:49:00 +01:00
parent cf93b73cf0
commit 2673254c6f
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
[DEFAULT]
test_command=SOLAR_DB="sqlite://" \
test_command=SOLAR_DB=${SOLAR_DB:=sqlite://} \
py.test ./solar --subunit $LISTOPT $IDOPTION
test_id_option=--subunit-load-list=$IDFILE
test_list_option=--collectonly

View File

@ -7,6 +7,7 @@ envlist = pep8,py27
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
passenv = SOLAR_DB
deps = -r{toxinidir}/test-requirements.txt
commands = ostestr