From e4a84590e8ab21077bf47c50fdfeaaa99f617bee Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Tue, 16 Jun 2020 09:39:57 -0700 Subject: [PATCH] [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. --- lldb/packages/Python/lldbsuite/test/lldbtest.py | 1 + 1 file changed, 1 insertion(+) 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 @@ class Base(unittest2.TestCase): return os.path.join(self.getSourceDir(), name) def getReproducerArtifact(self, name): + lldbutil.mkdir_p(self.getReproducerDir()) return os.path.join(self.getReproducerDir(), name) @classmethod