summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-08-19 16:04:21 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-08-19 16:04:21 +0000
commit8880ac648ceb337868b7c4949776e50f5fd1cad0 (patch)
treef0036ffea1e66f392ed2f1b9389c69aadd8f7c27 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parentec4540d8a62cfef017173ce7309adcb9beca4e53 (diff)
downloadbcm5719-llvm-8880ac648ceb337868b7c4949776e50f5fd1cad0.tar.gz
bcm5719-llvm-8880ac648ceb337868b7c4949776e50f5fd1cad0.zip
[dotest] Add --dwarf-version to override the tested DWARF version.
On the matrix bot on GreenDragon [1] we want to run the test suite against different DWARF versions. The idea here is not to replace targeted tests for certain DWARF features, but rather to provide an easy way to support this configuration. [1] http://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake-matrix/ Differential revision: https://reviews.llvm.org/D66370 llvm-svn: 369272
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index dd4651c9eff..f65cc308d66 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -1290,6 +1290,8 @@ class Base(unittest2.TestCase):
def getDwarfVersion(self):
""" Returns the dwarf version generated by clang or '0'. """
+ if configuration.dwarf_version:
+ return str(configuration.dwarf_version)
if 'clang' in self.getCompiler():
try:
driver_output = check_output(
OpenPOWER on IntegriCloud