From 87fa280831864789ed0d4e95f766d8e0cbbde82b Mon Sep 17 00:00:00 2001 From: Siddharth Bhat Date: Wed, 12 Jul 2017 09:42:05 +0000 Subject: [PATCH] [Polly] [Tests] Update `lit.cfg` uses of `lit.util.capture` to `subprocess.check_output` - `lit.util.capture` was removed in `r306625`. - Replace `lit.util.capture` to `subprocess.check_output` as LLVM did. - LLVM revision of this change: `https://reviews.llvm.org/D35088`. Differential Revision: https://reviews.llvm.org/D35255 llvm-svn: 307765 --- polly/test/lit.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/polly/test/lit.cfg b/polly/test/lit.cfg index dc98292..ac4eeee 100644 --- a/polly/test/lit.cfg +++ b/polly/test/lit.cfg @@ -3,6 +3,7 @@ import os import platform import re +import subprocess import lit.formats import lit.util @@ -80,8 +81,9 @@ if config.test_exec_root is None: lit_config.fatal('No site specific configuration available!') # Get the source and object roots. - llvm_src_root = lit.util.capture(['llvm-config', '--src-root']).strip() - llvm_obj_root = lit.util.capture(['llvm-config', '--obj-root']).strip() + llvm_src_root = subprocess.check_output(['llvm-config', '--src-root']).decode("utf-8").strip() + llvm_obj_root = subprocess.check_output(['llvm-config', '--obj-root']).decode("utf-8").strip() + polly_src_root = os.path.join(llvm_src_root, "tools", "polly") polly_obj_root = os.path.join(llvm_obj_root, "tools", "polly") -- 2.7.4