diff options
author | Sam McCall <sam.mccall@gmail.com> | 2022-03-11 01:57:05 +0300 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2022-03-11 01:57:27 +0300 |
commit | 7f0df31ee3f596c36a0bb6af4248aaf431541e3a (patch) | |
tree | 70a8331f295b758d6e16fbb7e290fefb06818ce7 /clang-tools-extra | |
parent | 14e4d2e5643e505039588d50b31e29e3042009f5 (diff) |
[clang-tools-extra] Don't consider python below LLVM_MINIMUM_PYTHON_VERSION. NFC
Diffstat (limited to 'clang-tools-extra')
-rw-r--r-- | clang-tools-extra/test/lit.cfg.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/clang-tools-extra/test/lit.cfg.py b/clang-tools-extra/test/lit.cfg.py index 1527b07a33ee..1c16cc73c744 100644 --- a/clang-tools-extra/test/lit.cfg.py +++ b/clang-tools-extra/test/lit.cfg.py @@ -3,6 +3,7 @@ import os import platform import re +import shlex import subprocess import lit.formats @@ -73,16 +74,7 @@ config.environment['LD_LIBRARY_PATH'] = path if config.clang_tidy_staticanalyzer: config.available_features.add('static-analyzer') -# Get shlex.quote if available (added in 3.3), and fall back to pipes.quote if -# it's not available. -try: - import shlex - sh_quote = shlex.quote -except: - import pipes - sh_quote = pipes.quote -python_exec = sh_quote(config.python_executable) - +python_exec = shlex.quote(config.python_executable) check_clang_tidy = os.path.join( config.test_source_root, "clang-tidy", "check_clang_tidy.py") config.substitutions.append( |