Avoid pollution and false positives with tox.ini

- removed build section in tox because a layer does not need to be
built
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

Change-Id: I4d7814a557bb17afb932ddcff6c75f2a8f61f51e
This commit is contained in:
Camille Rodriguez 2019-08-27 09:57:47 -04:00
parent 3025060167
commit 30009bad5b
1 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,10 @@
[tox]
skipsdist = True
envlist = pep8
# NOTE(beisner): Avoid build/test env pollution by not enabling sitepackages.
sitepackages = False
# NOTE(beisner): Avoid false positives by not skipping missing interpreters.
skip_missing_interpreters = False
[testenv]
basepython = python2.7
@ -15,11 +19,6 @@ deps =
-r{toxinidir}/requirements.txt
whitelist_externals = /bin/true /bin/echo
[testenv:build]
commands =
/bin/echo 'WARNING: *build* target is for testing only.'
charm-build --log-level DEBUG -o {toxinidir}/build .
[testenv:venv]
basepython = python3
commands = {posargs}