From a4e8b8af494d08bf9e225a9dbc7cf2c16a5e90d1 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno Date: Fri, 23 Aug 2013 18:35:51 +0200 Subject: [PATCH] Start all tests in the same directory --- testing/test_deltatar.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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): -- 1.7.1