[Lldb-commits] [lldb] r361115 - [lldb] [lit] Skip more tests when Python is unavailable

Michal Gorny via lldb-commits lldb-commits at lists.llvm.org
Sun May 19 02:27:53 PDT 2019


Author: mgorny
Date: Sun May 19 02:27:52 2019
New Revision: 361115

URL: http://llvm.org/viewvc/llvm-project?rev=361115&view=rev
Log:
[lldb] [lit] Skip more tests when Python is unavailable

LocalLLDBInit.test requires Python module loading support.
CommandScriptImmediateOutput tests are specific to running scripts.
Disable all of them when Python support is disabled.

Added:
    lldb/trunk/lit/Commands/CommandScriptImmediateOutput/lit.local.cfg
Modified:
    lldb/trunk/lit/Driver/LocalLLDBInit.test

Added: lldb/trunk/lit/Commands/CommandScriptImmediateOutput/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Commands/CommandScriptImmediateOutput/lit.local.cfg?rev=361115&view=auto
==============================================================================
--- lldb/trunk/lit/Commands/CommandScriptImmediateOutput/lit.local.cfg (added)
+++ lldb/trunk/lit/Commands/CommandScriptImmediateOutput/lit.local.cfg Sun May 19 02:27:52 2019
@@ -0,0 +1,2 @@
+if not "python" in config.available_features:
+    config.unsupported = True

Modified: lldb/trunk/lit/Driver/LocalLLDBInit.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Driver/LocalLLDBInit.test?rev=361115&r1=361114&r2=361115&view=diff
==============================================================================
--- lldb/trunk/lit/Driver/LocalLLDBInit.test (original)
+++ lldb/trunk/lit/Driver/LocalLLDBInit.test Sun May 19 02:27:52 2019
@@ -1,3 +1,4 @@
+# REQUIRES: python
 # RUN: mkdir -p %t.root
 # RUN: mkdir -p %t.home
 # RUN: cp %S/Inputs/.lldbinit %t.root




More information about the lldb-commits mailing list