summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Andrews <jesse@ubuntu>2010-08-14 18:39:00 -0700
committerJesse Andrews <jesse@ubuntu>2010-08-14 18:39:00 -0700
commit8b344451f06f96e846cb4fe87131fd23b5c386cc (patch)
tree1fd6eaa04171be159455a359cb6763b82ca42cc8
parentd64d0fccca94b073760bcfc19b763b2ab64abf08 (diff)
re-add redis clearing
-rw-r--r--run_tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/run_tests.py b/run_tests.py
index f0a5efb7e..d90ac8175 100644
--- a/run_tests.py
+++ b/run_tests.py
@@ -84,11 +84,11 @@ if __name__ == '__main__':
if FLAGS.fake_tests:
from nova.tests.fake_flags import *
# use db 8 for fake tests
- #FLAGS.redis_db = 8
- #if FLAGS.flush_db:
- # logging.info("Flushing redis datastore")
- # r = datastore.Redis.instance()
- # r.flushdb()
+ FLAGS.redis_db = 8
+ if FLAGS.flush_db:
+ logging.info("Flushing redis datastore")
+ r = datastore.Redis.instance()
+ r.flushdb()
else:
from nova.tests.real_flags import *