llvm.org GIT mirror llvm / 8804b79
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/llvm/trunk@307320 91177308-0d34-0410-b5e6-96231b3b80d8 David L. Jones 2 years ago
2 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
22 # Configuration file for the 'lit' test runner.
33
44 import os
5 import subprocess
56
67 import lit.formats
78
7475 lit_config.fatal('No site specific configuration available!')
7576
7677 # Get the source and object roots.
77 llvm_src_root = lit.util.capture(['llvm-config', '--src-root']).strip()
78 llvm_obj_root = lit.util.capture(['llvm-config', '--obj-root']).strip()
78 llvm_src_root = subprocess.check_output(['llvm-config', '--src-root']).strip()
79 llvm_obj_root = subprocess.check_output(['llvm-config', '--obj-root']).strip()
7980
8081 # Validate that we got a tree which points to here.
8182 this_src_root = os.path.join(os.path.dirname(__file__),'..','..')
55 import sys
66 import re
77 import platform
8 import subprocess
89
910 import lit.util
1011 import lit.formats
149150 lit_config.fatal('No site specific configuration available!')
150151
151152 # Get the source and object roots.
152 llvm_src_root = lit.util.capture(['llvm-config', '--src-root']).strip()
153 llvm_obj_root = lit.util.capture(['llvm-config', '--obj-root']).strip()
153 llvm_src_root = subprocess.check_output(['llvm-config', '--src-root']).strip()
154 llvm_obj_root = subprocess.check_output(['llvm-config', '--obj-root']).strip()
154155
155156 # Validate that we got a tree which points to here.
156157 this_src_root = os.path.dirname(config.test_source_root)