diff --git a/setup.cfg b/setup.cfg index 68f85d6a9b..906ccc2f3c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,6 @@ cover-erase = true cover-inclusive = true verbosity=2 detailed-errors=1 -where=tests [build_sphinx] all_files = 1 diff --git a/tox.ini b/tox.ini index f4fc7fba92..754ff0be6c 100644 --- a/tox.ini +++ b/tox.ini @@ -10,14 +10,15 @@ setenv = VIRTUAL_ENV={envdir} NOSE_OPENSTACK_RED=0.05 NOSE_OPENSTACK_YELLOW=0.025 NOSE_OPENSTACK_SHOW_ELAPSED=1 -commands = {toxinidir}/wrap_nosetests.sh --no-path-adjustment [] +commands = + nosetests --no-path-adjustment --where=./tests sitepackages = False [testenv:livedb] setenv=CEILOMETER_TEST_LIVE=1 [testenv:cover] -commands = {toxinidir}/wrap_nosetests.sh --no-path-adjustment --with-coverage --cover-erase --cover-package=ceilometer --cover-inclusive [] +commands = nosetests --no-path-adjustment --with-coverage --cover-erase --cover-package=ceilometer --cover-inclusive [] [testenv:pep8] deps = -r{toxinidir}/tools/test-requires diff --git a/wrap_nosetests.sh b/wrap_nosetests.sh deleted file mode 100755 index 3c0c75b608..0000000000 --- a/wrap_nosetests.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# Wrap nosetests to force it to enable global site-packages until -# https://bitbucket.org/hpk42/tox/issue/32 is released. - -set -x - -rm -rf cover -if [ ! -z "$VIRTUAL_ENV" ] -then - rm -f $VIRTUAL_ENV/lib/python*/no-global-site-packages.txt -fi - -nosetests "$@"