Run tests in venv
Previously we had wrongly assumed that python yaml package will be available in the images and the run-tests.sh script ran a set of things which included a script that used the pyyaml package. With the recent bindep changes, this assumption broke and the gate-devstack-gate-unittests failed. So we need to install the pyyaml package and then run the tests in this venv for run-tests.sh to work. Change-Id: I541c8add8041348a259b3b789d24cf24ba122ce0
This commit is contained in:
parent
47c7161e98
commit
ceb9cd120b
|
@ -0,0 +1 @@
|
||||||
|
PyYAML>=3.1.0
|
5
tox.ini
5
tox.ini
|
@ -7,6 +7,11 @@ skipsdist = True
|
||||||
install_command = pip install -U {opts} {packages}
|
install_command = pip install -U {opts} {packages}
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
|
||||||
|
[testenv:run-tests]
|
||||||
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
commands =
|
||||||
|
bash -c "./run-tests.sh"
|
||||||
|
|
||||||
[testenv:bashate]
|
[testenv:bashate]
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
bash
|
bash
|
||||||
|
|
Loading…
Reference in New Issue