summaryrefslogtreecommitdiffstats
path: root/run_tests.py
diff options
context:
space:
mode:
authorAndy Smith <code@term.ie>2011-01-12 16:57:04 -0800
committerAndy Smith <code@term.ie>2011-01-12 16:57:04 -0800
commit4f5c0c64ec9d397048dfd7b8d5c007ec0fa39ec5 (patch)
treedbf153da4079934dec8105a0dec88041eff39d3a /run_tests.py
parent27369c18bde257c068ffc51e5ef51b479ad351d0 (diff)
downloadnova-4f5c0c64ec9d397048dfd7b8d5c007ec0fa39ec5.tar.gz
nova-4f5c0c64ec9d397048dfd7b8d5c007ec0fa39ec5.tar.xz
nova-4f5c0c64ec9d397048dfd7b8d5c007ec0fa39ec5.zip
add support for database migration
Diffstat (limited to 'run_tests.py')
-rw-r--r--run_tests.py9
1 files changed, 8 insertions, 1 deletions
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,