devstack-gate/tox.ini
Davanum Srinivas ceb9cd120b 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
2016-03-08 10:25:17 -05:00

22 lines
410 B
INI

[tox]
envlist = bashate
minversion = 1.6
skipsdist = True
[testenv]
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
[testenv:run-tests]
deps = -r{toxinidir}/test-requirements.txt
commands =
bash -c "./run-tests.sh"
[testenv:bashate]
whitelist_externals =
bash
deps=
{env:BASHATE_INSTALL_PATH:bashate==0.3.1}
commands =
bash -c "ls *.sh | xargs bashate -v {posargs}"