[tracker/rss-enclosures] functional-tests: recover remove_dbs method. Needed for a backup test.



commit fee8668a7d51de48a80caa2e0b14cbb98fd1216e
Author: Ivan Frade <ivan frade nokia com>
Date:   Tue Oct 12 16:26:57 2010 +0300

    functional-tests: recover remove_dbs method. Needed for a backup test.

 tests/functional-tests/common/utils/system.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/system.py b/tests/functional-tests/common/utils/system.py
index 82cf2d7..90859d3 100644
--- a/tests/functional-tests/common/utils/system.py
+++ b/tests/functional-tests/common/utils/system.py
@@ -316,6 +316,12 @@ class TrackerSystemAbstraction:
         shutil.rmtree (db_location)
         os.mkdir (db_location)
 
+    def tracker_store_remove_dbs (self):
+        db_location = os.path.join (TEST_ENV_VARS ['XDG_CACHE_HOME'], "tracker")
+        shutil.rmtree (db_location)
+        os.mkdir (db_location)
+        
+
     def tracker_store_testing_stop (self):
         """
         Stops a running tracker-store and unset all the XDG_*_HOME vars



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]