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



commit 152b6000d24925215a094da17c9cc8a4f29aeed3
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]