From: Daniel Garcia Moreno Date: Fri, 23 Aug 2013 16:35:51 +0000 (+0200) Subject: Start all tests in the same directory X-Git-Tag: v2.2~109 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=a4e8b8af494d08bf9e225a9dbc7cf2c16a5e90d1;p=python-delta-tar Start all tests in the same directory --- diff --git a/testing/test_deltatar.py b/testing/test_deltatar.py index 61a750c..5cf7606 100644 --- a/testing/test_deltatar.py +++ b/testing/test_deltatar.py @@ -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):