Fix running the unittests under py3
Since we added the tests.functional the py3 tests wasn't running properly fixing it with some voodoo testr magic. Change-Id: Id301adb32ba739f05591c4c352e0cf7d87576755
This commit is contained in:
parent
3895d8535a
commit
bc84d7c3fb
@ -1,7 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
python setup.py testr --coverage --testr-args="--concurrency=1 tests.functional"
|
||||
export OS_TEST_PATH='tests.functional'
|
||||
python setup.py testr --coverage --testr-args="--concurrency=1"
|
||||
|
||||
RET=$?
|
||||
coverage report -m
|
||||
rm -f .coverage
|
||||
|
@ -1,4 +1,4 @@
|
||||
[DEFAULT]
|
||||
test_command=${PYTHON:-python} -m subunit.run discover -t ./ ./tests $LISTOPT $IDOPTION
|
||||
test_command=${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./tests/unit} $LISTOPT $IDOPTION
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
||||
|
2
tox.ini
2
tox.ini
@ -10,7 +10,7 @@ setenv = VIRTUAL_ENV={envdir}
|
||||
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = python setup.py testr --testr-args="{posargs} tests.unit"
|
||||
commands = python setup.py testr --testr-args="{posargs}"
|
||||
|
||||
[testenv:pypy]
|
||||
deps = setuptools<3.2
|
||||
|
Loading…
x
Reference in New Issue
Block a user