Unit tests unable to run on Windows
Bug #1736395 reported by
Alexandru Muresan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Alexandru Muresan |
Bug Description
The libvirt module cannot be imported on Windows due to some platform specific dependencies (eg: pwd).
The 'PoisonFunctions' fixture attempts to import 'nova.virt.libvirt' for which reason all the unit tests fail to run on Windows.
Would like to at least have the HyperV unit tests running on Windows.
Changed in nova: | |
assignee: | nobody → Alexandru Muresan (amuresan) |
status: | New → In Progress |
tags: | added: libvirt testing windows |
Changed in nova: | |
assignee: | Alexandru Muresan (amuresan) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Alexandru Muresan (amuresan) |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/518525 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=0e3d395313e 15f4e0f8c39244d 2292cd87df240d
Committed: https:/
Submitter: Zuul
Branch: master
commit 0e3d395313e15f4 e0f8c39244d2292 cd87df240d
Author: AlexMuresan <email address hidden>
Date: Wed Nov 8 15:09:07 2017 +0200
Fix driver tests on Windows
Driver tests were unable to run on Windows due to some import
errors.
Specifically, the 'setUp' method of the 'PoisonFunctions'
class would import 'nova.virt.libvirt' which in turn would cause
an error when running the Windows tests.
This change fixes this issue.
Partial-Bug: #1736395
Change-Id: Id21a24257ec1e0 0a1eb942aec725a e76e9f6e688