diff options
author | Vishvananda Ishaya <vishvananda@gmail.com> | 2013-02-20 19:05:44 -0800 |
---|---|---|
committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2013-02-20 19:53:50 -0800 |
commit | ce8cf3dcefb0a432381a4461b930a0a56ad22292 (patch) | |
tree | 803393d1324ef2c7b569125190579fb7d1503d78 /run_tests.sh | |
parent | f080f1146f22b305ac720be3afc3eb9f94da4b14 (diff) | |
download | nova-ce8cf3dcefb0a432381a4461b930a0a56ad22292.tar.gz |
Use a fake coverage module instead of real one.
Actually loading the coverage module was leading to odd concurrency
conditions where it was interfering with mocked calls. This changes
to stub out the coverage class with a fake one so that we don't have
to worry about collisions. It also modifies the coverage class to be
created lazily so it isn't automatically started at import time.
Finally it removes the hack in run_tests.sh ignoring the coverage
tests.
Fixes bug 1131023
Change-Id: I39de434454f8b0903f6311e731e215a93027bc91
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/run_tests.sh b/run_tests.sh index 9872858b42..68a5647549 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -110,10 +110,6 @@ function run_tests { ${wrapper} find . -type f -name "*.pyc" -delete if [ $coverage -eq 1 ]; then - # Do not test test_coverage_ext when gathering coverage. - if [ "x$testrargs" = "x" ]; then - testrargs="^(?!.*test.*coverage).*$" - fi TESTRTESTS="$TESTRTESTS --coverage" else TESTRTESTS="$TESTRTESTS --slowest" |