diff options
author | Donghoon Shin <dhs.shin@samsung.com> | 2017-02-07 08:59:01 +0900 |
---|---|---|
committer | Donghoon Shin <dhs.shin@samsung.com> | 2017-02-07 08:59:01 +0900 |
commit | 3d9e7f228b21a9f97e174fb34581792c0f1bdd00 (patch) | |
tree | 0ea535d42941975549ad1ba1f673b86aa3163389 | |
parent | d2beb7a2fa9c2870ca131d71e1d8ef690d39fcec (diff) | |
download | litmus-3d9e7f228b21a9f97e174fb34581792c0f1bdd00.tar.gz litmus-3d9e7f228b21a9f97e174fb34581792c0f1bdd00.tar.bz2 litmus-3d9e7f228b21a9f97e174fb34581792c0f1bdd00.zip |
Use os.makedirs for -d option
Use os.makedirs instead of os.mkdir because os.makedirs works like
'mkdir -p' functionality.
Change-Id: Ibcda8f5ff77c0be817aa20d2fca6051d2e802c32
-rw-r--r-- | litmus/core/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/litmus/core/manager.py b/litmus/core/manager.py index 15f21cb..300e7ce 100644 --- a/litmus/core/manager.py +++ b/litmus/core/manager.py @@ -278,7 +278,7 @@ Lightweight test manager for tizen automated testing self._backup_cwd = os.getcwd() if self._workingdir: if not os.path.exists(self._workingdir): - os.mkdir(self._workingdir) + os.makedirs(self._workingdir, exist_ok=True) os.chdir(self._workingdir) else: workingdir_name = str((hashlib.sha1(str(datetime.now()) |