From 6f356784be7abb5d555937bfb02aaf0700840845 Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Sun, 19 May 2019 06:05:31 +0000 Subject: [PATCH] [lldb] [lit] Driver/TestConvenienceVariables.test requires Python Differential Revision: https://reviews.llvm.org/D62096 llvm-svn: 361114 --- lldb/lit/Driver/TestConvenienceVariables.test | 3 ++- lldb/lit/lit.cfg.py | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lldb/lit/Driver/TestConvenienceVariables.test b/lldb/lit/Driver/TestConvenienceVariables.test index 99536e4c0290..a7b6faa34cb3 100644 --- a/lldb/lit/Driver/TestConvenienceVariables.test +++ b/lldb/lit/Driver/TestConvenienceVariables.test @@ -1,3 +1,4 @@ +REQUIRES: python RUN: %build %p/Inputs/hello.cpp -o %t RUN: %lldb %t -s %p/Inputs/convenience.in -o quit | FileCheck %s @@ -19,4 +20,4 @@ CHECK: 8 CHECK: script lldb.frame.GetLineEntry().GetFileSpec().GetFilename() CHECK: hello.c CHECK: script lldb.frame.GetFunctionName() -CHECK: main \ No newline at end of file +CHECK: main diff --git a/lldb/lit/lit.cfg.py b/lldb/lit/lit.cfg.py index 51d02aabe136..ad659eaf87f7 100644 --- a/lldb/lit/lit.cfg.py +++ b/lldb/lit/lit.cfg.py @@ -96,3 +96,6 @@ if 'native' in config.available_features: config.available_features.add('native-cpu-%s' % x) else: lit_config.warning("lit-cpuid failed: %s" % err) + +if not config.lldb_disable_python: + config.available_features.add('python')