[tracker/tracker-1.2] functional-tests: Clean up writebacktest base class



commit 874007b65eaf52a3f7e6bd67ad8bf3586bb4d099
Author: Sam Thursfield <sam afuera me uk>
Date:   Tue Jul 29 12:29:07 2014 +0200

    functional-tests: Clean up writebacktest base class

 .../functional-tests/common/utils/writebacktest.py |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/writebacktest.py 
b/tests/functional-tests/common/utils/writebacktest.py
index 834e79b..ce6f2c7 100644
--- a/tests/functional-tests/common/utils/writebacktest.py
+++ b/tests/functional-tests/common/utils/writebacktest.py
@@ -51,22 +51,11 @@ def uri (filename):
 class CommonTrackerWritebackTest (ut.TestCase):
     """
     Superclass to share methods. Shouldn't be run by itself.
-    Start all processes including writeback, miner pointing to HOME/test-writeback-monitored
+    Start all processes including writeback, miner pointing to WRITEBACK_TMP_DIR
     """
             
     @classmethod
     def __prepare_directories (self):
-        #
-        #     ~/test-writeback-monitored/
-        #
-        
-        for d in ["test-writeback-monitored"]:
-            directory = os.path.join (WRITEBACK_TMP_DIR, d)
-            if (os.path.exists (directory)):
-                shutil.rmtree (directory)
-            os.makedirs (directory)
-
-
         if (os.path.exists (os.getcwd() + "/test-writeback-data")):
             # Use local directory if available
             datadir = os.getcwd() + "/test-writeback-data"


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