From 7faa9dac84b80a9160512e4e1a14f2cfca66d38a Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 31 Jan 2018 21:39:00 +0000 Subject: replace os.mkdirs with lldbutil.mkdir_p (NFC) llvm-svn: 323917 --- .../lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py | 3 +-- .../single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'lldb/packages/Python/lldbsuite') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py b/lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py index 9692b169754..6812888989b 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py @@ -133,8 +133,7 @@ class ProcessLaunchTestCase(TestBase): err_file_name = "my_working_dir_test.err" my_working_dir_path = self.getBuildArtifact(mywd) - try: os.makedirs(my_working_dir_path) - except: pass + lldbutil.mkdir_p(my_working_dir_path) out_file_path = os.path.join(my_working_dir_path, out_file_name) err_file_path = os.path.join(my_working_dir_path, err_file_name) diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py b/lldb/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py index 9f1ec962adb..ad72e9f2075 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py @@ -35,8 +35,7 @@ class SingleQuoteInCommandLineTestCase(TestBase): """Test that 'lldb my_file_name' works where my_file_name is a string with a single quote char in it.""" import pexpect self.buildDefault() - try: os.makedirs(self.getBuildArtifact("path with '09")) - except: pass + lldbutil.mkdir_p(self.getBuildArtifact("path with '09")) system([["cp", self.getBuildArtifact("a.out"), "\"%s\"" % self.getBuildArtifact(self.myexe)]]) -- cgit v1.2.3