[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.
This commit is contained in:
Jonas Devlieghere 2020-06-16 09:39:57 -07:00
parent 993c43aea5
commit e4a84590e8
1 changed files with 1 additions and 0 deletions

View File

@ -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