Merge lp://qastaging/~rackspace-titan/nova/libvirt-no-globals into lp://qastaging/~hudson-openstack/nova/trunk
Status: | Work in progress |
---|---|
Proposed branch: | lp://qastaging/~rackspace-titan/nova/libvirt-no-globals |
Merge into: | lp://qastaging/~hudson-openstack/nova/trunk |
Diff against target: |
464 lines (+82/-61) 6 files modified
nova/tests/test_libvirt.py (+35/-29) nova/utils.py (+9/-0) nova/virt/libvirt/connection.py (+18/-25) nova/virt/libvirt/firewall.py (+10/-7) run_tests.py (+9/-0) tools/pip-requires (+1/-0) |
To merge this branch: | bzr merge lp://qastaging/~rackspace-titan/nova/libvirt-no-globals |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alex Meade (community) | Approve | ||
Vish Ishaya (community) | Approve | ||
Review via email:
|
Commit message
Added support for skipping tests via unittest2. Re-worked imports in libvirt/
Description of the change
Added the ability to "skip" tests, as provided by unittest2 (which back-ports python2.7 functionality and can be removed later once python2.7+ is required).
The ability to skip tests was needed because the current method of skipping (in test_libvirt.py) displayed "OK" when skipping tests. This will make things much more evident to the user when tests are being skipped.
Along with this change is `utils.
Unmerged revisions
- 1111. By Brian Lamar
-
Added the ability to "skip" tests, as provided by unittest2 (which back-ports python2.7 functionality and can be removed later once python2.7+ is required). The ability to skip tests was needed because the current method of skipping displayed "OK" when skipping tests. This will make things much more evident to the user when tests are being skipped. Along with this change is `utils.
optional_ import` which allows for removal of all "globals" being used in libvirt code.
I like these changes. Thanks for working on cleanup Brian!