Skip to content

Commit

Permalink
replace os.mkdirs with lldbutil.mkdir_p (NFC)
Browse files Browse the repository at this point in the history
llvm-svn: 323917
  • Loading branch information
adrian-prantl committed Jan 31, 2018
1 parent 15efa98 commit 7faa9da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def test_set_working_dir(self):
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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ def test_lldb_invocation_with_single_quote_in_filename(self):
"""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)]])
Expand Down

0 comments on commit 7faa9da

Please sign in to comment.