use tests.sqlite so it doesn't conflict with running db
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user