summaryrefslogtreecommitdiffstats
path: root/nova/flags.py
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-02-25 01:04:25 +0000
committerTarmac <>2011-02-25 01:04:25 +0000
commited7c71f56c5f5e2ba71273cf0099393fb986ebf9 (patch)
tree0bfe5d8683fc19beffbf4f233ddb5d7fe9d34c98 /nova/flags.py
parentc59109e32678535320a39599cce50fec65689082 (diff)
parent9c1f1c72883bb58a1d0de8541e55078859c2315c (diff)
downloadnova-ed7c71f56c5f5e2ba71273cf0099393fb986ebf9.tar.gz
nova-ed7c71f56c5f5e2ba71273cf0099393fb986ebf9.tar.xz
nova-ed7c71f56c5f5e2ba71273cf0099393fb986ebf9.zip
Make tests start with a clean database for every test.
Diffstat (limited to 'nova/flags.py')
-rw-r--r--nova/flags.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/flags.py b/nova/flags.py
index 24bca0caf..8cf199b2f 100644
--- a/nova/flags.py
+++ b/nova/flags.py
@@ -324,8 +324,9 @@ DEFINE_string('state_path', os.path.join(os.path.dirname(__file__), '../'),
DEFINE_string('logdir', None, 'output to a per-service log file in named '
'directory')
+DEFINE_string('sqlite_db', 'nova.sqlite', 'file name for sqlite')
DEFINE_string('sql_connection',
- 'sqlite:///$state_path/nova.sqlite',
+ 'sqlite:///$state_path/$sqlite_db',
'connection string for sql database')
DEFINE_integer('sql_idle_timeout',
3600,