[tracker/sam/functional-test-fixes: 17/18] functional-tests: Clarify writebacktest base class & remove dead code



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

    functional-tests: Clarify writebacktest base class & remove dead code

 .../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 41562d8..ff7f7fa 100644
--- a/tests/functional-tests/common/utils/writebacktest.py
+++ b/tests/functional-tests/common/utils/writebacktest.py
@@ -52,22 +52,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]