From 4f5c0c64ec9d397048dfd7b8d5c007ec0fa39ec5 Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Wed, 12 Jan 2011 16:57:04 -0800 Subject: add support for database migration --- run_tests.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'run_tests.py') diff --git a/run_tests.py b/run_tests.py index 5b8617f63..fbca3cbe3 100644 --- a/run_tests.py +++ b/run_tests.py @@ -17,7 +17,7 @@ # See the License for the specific language governing permissions and # limitations under the License. - +import gettext import os import unittest import sys @@ -26,6 +26,10 @@ from nose import config from nose import result from nose import core +gettext.install('nova', unicode=1) + +from nova.db import migration + class NovaTestResult(result.TextTestResult): def __init__(self, *args, **kw): @@ -61,6 +65,9 @@ if __name__ == '__main__': c = config.Config(stream=sys.stdout, env=os.environ, verbosity=3) + + migration.db_sync() + runner = NovaTestRunner(stream=c.stream, verbosity=c.verbosity, -- cgit