summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-01-31 21:39:00 +0000
committerAdrian Prantl <aprantl@apple.com>2018-01-31 21:39:00 +0000
commit7faa9dac84b80a9160512e4e1a14f2cfca66d38a (patch)
treef66b8d5acb3cbba9b8fb35fff8f019dc085db6e4 /lldb/packages/Python/lldbsuite/test
parent15efa98f6340b3e04d8ccd0358e25fdc822a72f3 (diff)
downloadbcm5719-llvm-7faa9dac84b80a9160512e4e1a14f2cfca66d38a.tar.gz
bcm5719-llvm-7faa9dac84b80a9160512e4e1a14f2cfca66d38a.zip
replace os.mkdirs with lldbutil.mkdir_p (NFC)
llvm-svn: 323917
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py3
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py3
2 files changed, 2 insertions, 4 deletions
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)]])
OpenPOWER on IntegriCloud