Skip to content

Commit 08ef05b

Browse files
authored
[build] invoke lit with python3 unconditionally (#286)
The mechanism to revert to the old mechanism in #272 was only introduced for an abudance of caution.
1 parent a1f929c commit 08ef05b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

build-script.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,6 @@ def find_lit_test_helper_exec(toolchain, build_dir, release):
468468
return os.path.join(bin_dir.strip(), "lit-test-helper")
469469

470470

471-
def get_lit_exec_invocation():
472-
if 'SWIFT_SYNTAX_LIT_TESTS_USE_PYTHON_DEFAULT' in os.environ:
473-
return [LIT_EXEC]
474-
else:
475-
return ["python3", LIT_EXEC]
476-
477-
478471
def run_lit_tests(toolchain, build_dir, release, filecheck_exec, verbose):
479472
print("** Running lit-based tests **")
480473

@@ -485,7 +478,7 @@ def run_lit_tests(toolchain, build_dir, release, filecheck_exec, verbose):
485478
toolchain=toolchain, build_dir=build_dir, release=release
486479
)
487480

488-
lit_call = get_lit_exec_invocation()
481+
lit_call = ["python3", LIT_EXEC]
489482
lit_call.append(os.path.join(PACKAGE_DIR, "lit_tests"))
490483

491484
if filecheck_exec:

0 commit comments

Comments
 (0)