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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user