OpenStack Compute (Nova)

Test suite fails to run when not using virtualenv

Reported by Johannes Erdfelt on 2011-12-07
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Undecided
Duncan McGreggor

Bug Description

A recent change (it appears to be 0b28e574afa8563524e21d31d95972c8ba126de2) has caused the test suite to silently fail to run when not using a virtualenv.

% ./run_tests.sh -N
%

It appears to be a python path problem since setting PYTHONPATH to the top of the tree allows the test suite to run.

% PYTHONPATH=$PWD ./run_tests.sh -N
[lots of test suite output]

Changed in nova:
assignee: nobody → Duncan McGreggor (oubiwann)
Changed in nova:
status: New → Confirmed
Duncan McGreggor (oubiwann) wrote :

I've submitted a fix for review here:
  https://review.openstack.org/#change,2160

If you want to checkout the branch and see if the solution works for you, you can get it here:
  https://github.com/oubiwann/nova/tree/bug-901387

Changed in nova:
status: Confirmed → In Progress

Reviewed: https://review.openstack.org/2160
Committed: http://github.com/openstack/nova/commit/ac0ac446aaa0af517a2b726e48d3b37eeffd46e5
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit ac0ac446aaa0af517a2b726e48d3b37eeffd46e5
Author: Duncan McGreggor <email address hidden>
Date: Wed Dec 7 15:20:55 2011 -0800

    Updated the test runner module with a sys.path insert so that tests run in and
    outside a virtual environment.

    This addresses bug 901387

    Change-Id: I12a2b1eeaf0ce46796af6e42fd6537bccd6a4d8f

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2011-12-14
Changed in nova:
milestone: none → essex-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers