summaryrefslogtreecommitdiffstats
path: root/lldb/test/API
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-12-13 10:37:33 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-12-13 13:41:11 -0800
commit4e26cf2cfb2b140a33ec236153cb2f23b5c44127 (patch)
tree466e768fef375dd038474f91abc4eb255dca93ec /lldb/test/API
parent9cb7a1be2a430a50fb5644b3f48d4a1544034fb9 (diff)
downloadbcm5719-llvm-4e26cf2cfb2b140a33ec236153cb2f23b5c44127.tar.gz
bcm5719-llvm-4e26cf2cfb2b140a33ec236153cb2f23b5c44127.zip
[lldb/CMake] Rename LLDB_DISABLE_PYTHON to LLDB_ENABLE_PYTHON
This matches the naming scheme used by LLVM and all the other optional dependencies in LLDB. Differential revision: https://reviews.llvm.org/D71482
Diffstat (limited to 'lldb/test/API')
-rw-r--r--lldb/test/API/lit.site.cfg.py.in2
-rw-r--r--lldb/test/API/lldbtest.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/test/API/lit.site.cfg.py.in b/lldb/test/API/lit.site.cfg.py.in
index b5e8ed9df8d..374ca929aeb 100644
--- a/lldb/test/API/lit.site.cfg.py.in
+++ b/lldb/test/API/lit.site.cfg.py.in
@@ -20,7 +20,7 @@ config.lldb_build_directory = "@LLDB_TEST_BUILD_DIRECTORY@"
config.python_executable = "@PYTHON_EXECUTABLE@"
config.dotest_path = "@LLDB_SOURCE_DIR@/test/API/dotest.py"
config.dotest_args_str = "@LLDB_DOTEST_ARGS@"
-config.lldb_disable_python = @LLDB_DISABLE_PYTHON@
+config.lldb_enable_python = @LLDB_ENABLE_PYTHON@
config.dotest_lit_args_str = None
# The API tests use their own module caches.
config.lldb_module_cache = os.path.join("@LLDB_TEST_MODULE_CACHE_LLDB@", "lldb-api")
diff --git a/lldb/test/API/lldbtest.py b/lldb/test/API/lldbtest.py
index e7ba5eb3b04..349a67f22fb 100644
--- a/lldb/test/API/lldbtest.py
+++ b/lldb/test/API/lldbtest.py
@@ -55,7 +55,7 @@ class LLDBTest(TestFormat):
if litConfig.noExecute:
return lit.Test.PASS, ''
- if test.config.lldb_disable_python:
+ if not test.config.lldb_enable_python:
return (lit.Test.UNSUPPORTED, 'Python module disabled')
if test.config.unsupported:
OpenPOWER on IntegriCloud