Browse Source

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
changes/69/289969/2
Davanum Srinivas 5 years ago
parent
commit
ceb9cd120b
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      test-requirements.txt
  2. +5
    -0
      tox.ini

+ 1
- 0
test-requirements.txt View File

@ -0,0 +1 @@
PyYAML>=3.1.0

+ 5
- 0
tox.ini View File

@ -7,6 +7,11 @@ skipsdist = True
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


Loading…
Cancel
Save