remove changes to test db
This commit is contained in:
@@ -113,7 +113,7 @@ def main():
|
|||||||
FLAGS.num_networks = 5
|
FLAGS.num_networks = 5
|
||||||
path = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
path = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||||
'..',
|
'..',
|
||||||
'tests.sqlite'))
|
'nova.sqlite'))
|
||||||
FLAGS.sql_connection = 'sqlite:///%s' % path
|
FLAGS.sql_connection = 'sqlite:///%s' % path
|
||||||
action = argv[1]
|
action = argv[1]
|
||||||
if action in ['add', 'del', 'old']:
|
if action in ['add', 'del', 'old']:
|
||||||
|
@@ -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:///tests.sqlite'
|
FLAGS.sql_connection = 'sqlite:///nova.sqlite'
|
||||||
FLAGS.use_ipv6 = True
|
FLAGS.use_ipv6 = True
|
||||||
FLAGS.logfile = 'tests.log'
|
FLAGS.logfile = 'tests.log'
|
||||||
|
@@ -59,8 +59,6 @@ class NovaTestRunner(core.TextTestRunner):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if os.path.exists("tests.sqlite"):
|
|
||||||
os.unlink("tests.sqlite")
|
|
||||||
logging.setup()
|
logging.setup()
|
||||||
c = config.Config(stream=sys.stdout,
|
c = config.Config(stream=sys.stdout,
|
||||||
env=os.environ,
|
env=os.environ,
|
||||||
|
Reference in New Issue
Block a user