use tests.sqlite so it doesn't conflict with running db

This commit is contained in:
Vishvananda Ishaya
2011-02-21 11:42:46 -08:00
parent 906925e0a7
commit b87ea7079d
2 changed files with 4 additions and 4 deletions

View File

@@ -39,6 +39,6 @@ FLAGS.num_shelves = 2
FLAGS.blades_per_shelf = 4 FLAGS.blades_per_shelf = 4
FLAGS.iscsi_num_targets = 8 FLAGS.iscsi_num_targets = 8
FLAGS.verbose = True FLAGS.verbose = True
FLAGS.sql_connection = 'sqlite:///nova.sqlite' FLAGS.sql_connection = 'sqlite:///tests.sqlite'
FLAGS.use_ipv6 = True FLAGS.use_ipv6 = True
FLAGS.logfile = 'run_tests.err' FLAGS.logfile = 'tests.log'

View File

@@ -58,8 +58,8 @@ class NovaTestRunner(core.TextTestRunner):
if __name__ == '__main__': if __name__ == '__main__':
if os.path.exists("nova.sqlite"): if os.path.exists("tests.sqlite"):
os.unlink("nova.sqlite") os.unlink("tests.sqlite")
c = config.Config(stream=sys.stdout, c = config.Config(stream=sys.stdout,
env=os.environ, env=os.environ,
verbosity=3, verbosity=3,