Running coverage with unit tests causes failures

Bug #1364347 reported by git-harry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
git-harry

Bug Description

when using './run_tests.sh -c' a number of the tests fail

The following is the last few lines of output from run_tests.sh:

Ran 3411 tests in 313.373s

FAILED (failures=32)
Generating coverage report in covhtml/

The issue appears be that when coverage is used the cinder repo directory is not in sys.path and so the entry points for cinder are not discovered.

git-harry (git-harry)
Changed in cinder:
assignee: nobody → git-harry (git-harry)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/118317

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/118317
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=373fad9dc55c3d8eb7d50d2b2f89664fec61bfae
Submitter: Jenkins
Branch: master

commit 373fad9dc55c3d8eb7d50d2b2f89664fec61bfae
Author: git-harry <email address hidden>
Date: Tue Sep 2 13:04:06 2014 +0100

    Fix running unit tests with coverage

    The path to this repo is added to PYTHONPATH when the coverage flag is
    specified so that the cinder entry points are discovered.

    Change-Id: Ie33a63c6ecd443b900fa7bed3a1ec5b6bb0065e6
    Closes-Bug: #1364347

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → juno-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: juno-rc1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.