[PATCH] D96499: [debuginfo-tests] Remove explicit checks for Python 3
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 11 06:52:05 PST 2021
jhenderson created this revision.
jhenderson added reviewers: jmorse, dblaikie, rnk, Orlando, aganea, aprantl.
Herald added a subscriber: mgorny.
jhenderson requested review of this revision.
Herald added a project: LLVM.
LLVM has a minimum requirement of python 3.6 now, so these are no longer needed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96499
Files:
debuginfo-tests/CMakeLists.txt
debuginfo-tests/lit.cfg.py
debuginfo-tests/lit.site.cfg.py.in
Index: debuginfo-tests/lit.site.cfg.py.in
===================================================================
--- debuginfo-tests/lit.site.cfg.py.in
+++ debuginfo-tests/lit.site.cfg.py.in
@@ -24,8 +24,6 @@
config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
-config.python3_executable = "@Python3_EXECUTABLE@"
-
# Support substitution of the tools_dir with user parameters. This is
# used when we can't determine the tool dir at configuration time.
try:
Index: debuginfo-tests/lit.cfg.py
===================================================================
--- debuginfo-tests/lit.cfg.py
+++ debuginfo-tests/lit.cfg.py
@@ -102,14 +102,14 @@
# for running a test.
dexter_path = os.path.join(config.debuginfo_tests_src_root,
'dexter', 'dexter.py')
-dexter_test_cmd = '"{}" "{}" test'.format(config.python3_executable, dexter_path)
+dexter_test_cmd = '"{}" "{}" test'.format(sys.executable, dexter_path)
if lldb_path is not None:
dexter_test_cmd += ' --lldb-executable "{}"'.format(lldb_path)
tools.append(ToolSubst('%dexter', dexter_test_cmd))
# For testing other bits of dexter that aren't under the "test" subcommand,
# have a %dexter_base substitution.
-dexter_base_cmd = '"{}" "{}"'.format(config.python3_executable, dexter_path)
+dexter_base_cmd = '"{}" "{}"'.format(sys.executable, dexter_path)
tools.append(ToolSubst('%dexter_base', dexter_base_cmd))
# Set up commands for DexTer regression tests.
@@ -129,8 +129,8 @@
# Typical command would take the form:
# ./path_to_py/python.exe ./path_to_dex/dexter.py test --fail-lt 1.0 -w --builder clang --debugger lldb --cflags '-O0 -g'
dexter_regression_test_command = ' '.join(
- # "python3", "dexter.py", test, fail_mode, builder, debugger, cflags, ldflags
- ['"{}"'.format(config.python3_executable),
+ # "python", "dexter.py", test, fail_mode, builder, debugger, cflags, ldflags
+ ['"{}"'.format(sys.executable),
'"{}"'.format(dexter_path),
'test',
'--fail-lt 1.0 -w',
Index: debuginfo-tests/CMakeLists.txt
===================================================================
--- debuginfo-tests/CMakeLists.txt
+++ debuginfo-tests/CMakeLists.txt
@@ -54,10 +54,6 @@
set(DEBUGINFO_TEST_DEPS ${DEBUGINFO_TEST_DEPS} lld)
endif()
-if (NOT DEFINED Python3_EXECUTABLE)
- message(FATAL_ERROR "Cannot run debuginfo-tests without python 3")
-endif()
-
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96499.322988.patch
Type: text/x-patch
Size: 2487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210211/1835a750/attachment.bin>
More information about the llvm-commits
mailing list