diff options
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index ed1ba2d11b1a..8ed9187aea77 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -6,6 +6,7 @@ import os import sys import re import platform +import subprocess import lit.util import lit.formats @@ -150,8 +151,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() # Validate that we got a tree which points to here. this_src_root = os.path.dirname(config.test_source_root) |