From c1f75a6c945609d1f2a9ff51e5db259ff52e50f5 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Thu, 16 Feb 2012 09:55:26 +0100 Subject: [PATCH] test: Create all intermediary maildirs Don't fail if root maildir folder does not exist it. Create it recursively. Signed-off-by: Sebastian Spaeth --- test/OLItest/TestRunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/OLItest/TestRunner.py b/test/OLItest/TestRunner.py index 183f67a..742d118 100644 --- a/test/OLItest/TestRunner.py +++ b/test/OLItest/TestRunner.py @@ -108,7 +108,7 @@ class OLITestLib(): maildir = os.path.join(cls.testdir, 'mail', folder) for subdir in ('','tmp','cur','new'): try: - os.mkdir(os.path.join(maildir, subdir)) + os.makedirs(os.path.join(maildir, subdir)) except OSError as e: if e.errno != 17: # 'already exists' is ok. raise