diff --git a/run_tests.sh b/run_tests.sh index 39176d78bff5..8a7bce63b5db 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -81,7 +81,7 @@ function run_tests { if [ $coverage -eq 1 ]; then # Do not test test_coverage_ext when gathering coverage. if [ "x$testrargs" = "x" ]; then - testrargs="^(?!.*test_coverage_ext).*$" + testrargs="^(?!.*test.*coverage).*$" fi export PYTHON="${wrapper} coverage run --source nova --parallel-mode" fi diff --git a/tox.ini b/tox.ini index 58468accb821..e98f301515b8 100644 --- a/tox.ini +++ b/tox.ini @@ -38,7 +38,7 @@ commands = python tools/flakes.py nova # tests conflict with coverage. commands = python setup.py testr --coverage \ - --testr-args='^(?!.*test_coverage_ext).*$' + --testr-args='^(?!.*test.*coverage).*$' [testenv:venv] commands = {posargs}