Unit tests unable to run on Windows

Bug #1736395 reported by Alexandru Muresan
6
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.

Trace: http://paste.openstack.org/raw/628147/

Changed in nova:
assignee: nobody → Alexandru Muresan (amuresan)
status: New → In Progress
Matt Riedemann (mriedem)
tags: added: libvirt testing windows
Changed in nova:
assignee: Alexandru Muresan (amuresan) → Matt Riedemann (mriedem)
Matt Riedemann (mriedem)
Changed in nova:
assignee: Matt Riedemann (mriedem) → Alexandru Muresan (amuresan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.opendev.org/518525
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0e3d395313e15f4e0f8c39244d2292cd87df240d
Submitter: Zuul
Branch: master

commit 0e3d395313e15f4e0f8c39244d2292cd87df240d
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: Id21a24257ec1e00a1eb942aec725ae76e9f6e688

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.