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
This commit is contained in:
Duncan McGreggor
2011-12-07 15:20:55 -08:00
parent 53aa9311c4
commit b096725b36

View File

@@ -63,13 +63,16 @@ import unittest
import sys
import time
gettext.install('nova', unicode=1)
import eventlet
from nose import config
from nose import core
from nose import result
gettext.install('nova', unicode=1)
reldir = os.path.join(os.path.dirname(__file__), '..', '..')
absdir = os.path.abspath(reldir)
sys.path.insert(0, absdir)
from nova import log as logging