summaryrefslogtreecommitdiff
path: root/lldb/packages/Python
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-06-11 09:35:19 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2020-06-11 09:36:54 -0700
commit5a33ba52b66ceb336b2dd941c9e3f5313a388e63 (patch)
tree1a4eee79341d7fbe56596031bbe23b69d0de224d /lldb/packages/Python
parent4e19ba4159f8e498863cd1edb9ecde175edd1f3a (diff)
[lldb/Test] Ensure inline tests have a unique build directory
Inline tests have one method named 'test' which means that multiple inline tests in the same file end up sharing the same build directory per variant. This patch overrides the getBuildDirBasename method for the InlineTest class to include the test name. Differential revision: https://reviews.llvm.org/D81516
Diffstat (limited to 'lldb/packages/Python')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbinline.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbinline.py b/lldb/packages/Python/lldbsuite/test/lldbinline.py
index 71143ce3f16a..29a708440c2a 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbinline.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbinline.py
@@ -82,6 +82,11 @@ class CommandParser:
class InlineTest(TestBase):
+ # Overrides
+
+ def getBuildDirBasename(self):
+ return self.__class__.__name__ + "." + self.testMethodName
+
# Internal implementation
def BuildMakefile(self):