Start all tests in the same directory
authorDaniel Garcia Moreno <danigm@wadobo.com>
Fri, 23 Aug 2013 16:35:51 +0000 (18:35 +0200)
committerDaniel Garcia Moreno <danigm@wadobo.com>
Fri, 23 Aug 2013 16:35:51 +0000 (18:35 +0200)
testing/test_deltatar.py

index 61a750c..5cf7606 100644 (file)
@@ -46,6 +46,7 @@ class DeltaTarTest(BaseTest):
         '''
         Create base test data
         '''
+        self.pwd = os.getcwd()
         os.system('rm -rf target_dir source_dir* backup_dir* huge')
         os.makedirs('source_dir/test/test2')
         self.hash = dict()
@@ -62,6 +63,7 @@ class DeltaTarTest(BaseTest):
         '''
         Remove temporal files created by unit tests
         '''
+        os.chdir(self.pwd)
         os.system("rm -rf source_dir target_dir source_dir* backup_dir* huge")
 
     def test_restore_simple_full_backup(self):