[Lldb-commits] [lldb] r323917 - replace os.mkdirs with lldbutil.mkdir_p (NFC)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 31 13:39:00 PST 2018


Author: adrian
Date: Wed Jan 31 13:39:00 2018
New Revision: 323917

URL: http://llvm.org/viewvc/llvm-project?rev=323917&view=rev
Log:
replace os.mkdirs with lldbutil.mkdir_p (NFC)

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py?rev=323917&r1=323916&r2=323917&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/process_launch/TestProcessLaunch.py Wed Jan 31 13:39:00 2018
@@ -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)
 

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py?rev=323917&r1=323916&r2=323917&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py Wed Jan 31 13:39:00 2018
@@ -35,8 +35,7 @@ class SingleQuoteInCommandLineTestCase(T
         """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)]])




More information about the lldb-commits mailing list