From: Artem Dergachev Date: Wed, 5 Jun 2019 02:09:29 +0000 (+0000) Subject: [analyzer] exploded-graph-rewriter: Pick up python from cmake in tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee342fa0dccebbd0af979d0bc6cb963036cdd45c;p=clang [analyzer] exploded-graph-rewriter: Pick up python from cmake in tests. This should fix NetBSD buildbots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362574 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/exploded-graph-rewriter/lit.local.cfg b/test/Analysis/exploded-graph-rewriter/lit.local.cfg index 1ebb25a400..7bc2e107f6 100644 --- a/test/Analysis/exploded-graph-rewriter/lit.local.cfg +++ b/test/Analysis/exploded-graph-rewriter/lit.local.cfg @@ -1,3 +1,5 @@ +# -*- Python -*- + import lit.util import lit.formats import os @@ -6,8 +8,11 @@ use_lit_shell = os.environ.get("LIT_USE_INTERNAL_SHELL") config.test_format = lit.formats.ShTest(use_lit_shell == "0") config.substitutions.append(('%exploded_graph_rewriter', - lit.util.which('exploded-graph-rewriter.py', - os.path.join(config.clang_src_dir, - 'utils', 'analyzer')))) + '\'%s\' %s' % ( + config.python_executable, + lit.util.which('exploded-graph-rewriter.py', + os.path.join( + config.clang_src_dir, + 'utils', 'analyzer'))))) config.suffixes = ['.dot']