aboutsummaryrefslogtreecommitdiff
path: root/test/Unit
diff options
context:
space:
mode:
authorDavid L. Jones <dlj@google.com>2017-07-06 21:46:47 +0000
committerDavid L. Jones <dlj@google.com>2017-07-06 21:46:47 +0000
commitb3bfd389c3fedf7005ce18a30e786b4c6cac8e33 (patch)
treec1ffc98da9ad0aa2779cf00853379cc7f5b869e6 /test/Unit
parent3dea30d912959b957808b0c114298ca3c6200d45 (diff)
Change remaining references to lit.util.capture to use subprocess.check_output.
Summary: The capture() function was removed in r306625. This should fix PGO breakages reported by Michael Zolotukhin. Reviewers: mzolotukhin Subscribers: sanjoy, llvm-commits Differential Revision: https://reviews.llvm.org/D35088 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Unit')
-rw-r--r--test/Unit/lit.cfg5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg
index 39fad0099c..90eb2ac604 100644
--- a/test/Unit/lit.cfg
+++ b/test/Unit/lit.cfg
@@ -4,6 +4,7 @@
import os
import platform
+import subprocess
import lit.formats
import lit.util
@@ -65,8 +66,8 @@ 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']).strip()
+ llvm_obj_root = subprocess.check_output(['llvm-config', '--obj-root']).strip()
clang_src_root = os.path.join(llvm_src_root, "tools", "clang")
clang_obj_root = os.path.join(llvm_obj_root, "tools", "clang")