diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-06-25 17:26:38 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-06-25 17:26:38 -0700 |
| commit | 9978d656d262a95e17a60a2c137664b315f8191a (patch) | |
| tree | 046187cf89451cc17523776405760d568f8ab630 /nova | |
| parent | 8a8c013cd4513b07e936125a23188e7608f40d58 (diff) | |
only create the db if it doesn't exist, add an option -r to run_tests.py to delete it
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/tests/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/__init__.py b/nova/tests/__init__.py index 7fba02a93..5e0cb718e 100644 --- a/nova/tests/__init__.py +++ b/nova/tests/__init__.py @@ -50,7 +50,7 @@ def setup(): testdb = os.path.join(FLAGS.state_path, FLAGS.sqlite_db) if os.path.exists(testdb): - os.unlink(testdb) + return migration.db_sync() ctxt = context.get_admin_context() network_manager.VlanManager().create_networks(ctxt, |
