summaryrefslogtreecommitdiffstats
path: root/nova/test.py
diff options
context:
space:
mode:
authorEric Day <eday@oddments.org>2010-12-16 17:05:54 -0800
committerEric Day <eday@oddments.org>2010-12-16 17:05:54 -0800
commit8c343e1b4b92aa7b1062acebe8eaea402bc6ab4a (patch)
tree81956d3d2128362d366f49d847b8d3c4244bd2e7 /nova/test.py
parentd67b9f7b8b1fb7d73ad08a04c6ee2d98fc9037d8 (diff)
downloadnova-8c343e1b4b92aa7b1062acebe8eaea402bc6ab4a.tar.gz
nova-8c343e1b4b92aa7b1062acebe8eaea402bc6ab4a.tar.xz
nova-8c343e1b4b92aa7b1062acebe8eaea402bc6ab4a.zip
First pass at converting run_tests.py to nosetests. The network and objctstore tests don't yet work. Also, we need to manually remove the sqlite file between runs.
Diffstat (limited to 'nova/test.py')
-rw-r--r--nova/test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/nova/test.py b/nova/test.py
index 7076f1bf4..db5826c04 100644
--- a/nova/test.py
+++ b/nova/test.py
@@ -38,9 +38,12 @@ from nova import fakerabbit
from nova import flags
from nova import rpc
from nova.network import manager as network_manager
+from nova.tests import fake_flags
FLAGS = flags.FLAGS
+flags.DEFINE_bool('flush_db', True,
+ 'Flush the database before running fake tests')
flags.DEFINE_bool('fake_tests', True,
'should we use everything for testing')