Adding changes for tox failure
This patch resolves the issue of tox failure. Change-Id: I565cd2593982a1b5c8c43cf394301c56e24b9b29 Closes-Bug: 1828511
This commit is contained in:
parent
563044e408
commit
6148f9fb3b
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=${TESTS_DIR:-./proliantutils/tests/}
|
||||||
|
top_dir=./
|
@ -1,4 +0,0 @@
|
|||||||
[DEFAULT]
|
|
||||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ${TESTS_DIR:-./proliantutils/tests/} $LISTOPT $IDOPTION
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
15
tox.ini
15
tox.ini
@ -10,7 +10,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
LC_ALL=en_US.UTF-8
|
LC_ALL=en_US.UTF-8
|
||||||
TESTS_DIR=./proliantutils/tests/
|
TESTS_DIR=./proliantutils/tests/
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = ostestr {posargs}
|
commands = stestr run {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
@ -25,10 +25,15 @@ commands =
|
|||||||
# in your browser, to see a nicer presentation report with annotated
|
# in your browser, to see a nicer presentation report with annotated
|
||||||
# HTML listings detailing missed lines.
|
# HTML listings detailing missed lines.
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
deps = {[testenv]deps}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
commands = coverage erase
|
LANGUAGE=en_US
|
||||||
python setup.py testr --coverage --omit='*test*' --testr-args='{posargs}'
|
PYTHON=coverage run --source proliantutils --omit='*tests*' --parallel-mode
|
||||||
coverage report --omit=*test*
|
commands =
|
||||||
|
coverage erase
|
||||||
|
stestr run {posargs}
|
||||||
|
coverage combine
|
||||||
|
coverage report --omit='*tests*'
|
||||||
|
coverage html -d ./cover --omit='*tests*'
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# Exclude MIB directories from flake8/pep8 tests as these are
|
# Exclude MIB directories from flake8/pep8 tests as these are
|
||||||
|
Loading…
Reference in New Issue
Block a user