Skip to content

Commit d375592

Browse files
committed
Merging r361114:
------------------------------------------------------------------------ r361114 | mgorny | 2019-05-18 23:05:31 -0700 (Sat, 18 May 2019) | 3 lines [lldb] [lit] Driver/TestConvenienceVariables.test requires Python Differential Revision: https://reviews.llvm.org/D62096 ------------------------------------------------------------------------ llvm-svn: 364257
1 parent 464c365 commit d375592

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lldb/lit/Driver/TestConvenienceVariables.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
REQUIRES: python
12
RUN: %build %p/Inputs/hello.cpp -o %t
23
RUN: %lldb %t -s %p/Inputs/convenience.in -o quit | FileCheck %s
34

@@ -19,4 +20,4 @@ CHECK: 8
1920
CHECK: script lldb.frame.GetLineEntry().GetFileSpec().GetFilename()
2021
CHECK: hello.c
2122
CHECK: script lldb.frame.GetFunctionName()
22-
CHECK: main
23+
CHECK: main

lldb/lit/lit.cfg.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,6 @@ def calculate_arch_features(arch_string):
7373
if os.path.isdir(cachedir):
7474
print("Deleting module cache at %s."%cachedir)
7575
shutil.rmtree(cachedir)
76+
77+
if not config.lldb_disable_python:
78+
config.available_features.add('python')

0 commit comments

Comments
 (0)