[Lldb-commits] [lldb] e4a8459 - [lldb/Test] Create dir if it doesn't yet exist in getReproducerArtifact

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 16 09:46:56 PDT 2020


Author: Jonas Devlieghere
Date: 2020-06-16T09:46:48-07:00
New Revision: e4a84590e8ab21077bf47c50fdfeaaa99f617bee

URL: https://github.com/llvm/llvm-project/commit/e4a84590e8ab21077bf47c50fdfeaaa99f617bee
DIFF: https://github.com/llvm/llvm-project/commit/e4a84590e8ab21077bf47c50fdfeaaa99f617bee.diff

LOG: [lldb/Test] Create dir if it doesn't yet exist in getReproducerArtifact

The type test use this method to store the golden output. This currently
fails if the reproducer directory hasn't yet been created.

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/lldbtest.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 7190be6be9b3..c5373479e48f 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -696,6 +696,7 @@ def getSourcePath(self, name):
         return os.path.join(self.getSourceDir(), name)
 
     def getReproducerArtifact(self, name):
+        lldbutil.mkdir_p(self.getReproducerDir())
         return os.path.join(self.getReproducerDir(), name)
 
     @classmethod


        


More information about the lldb-commits mailing list