Skip to content

Commit 6eccf83

Browse files
authored
Merge pull request swiftlang#36648 from edymtt/use-python3-to-test-installable-package
[build] use python3 when testing installable package
2 parents 4faa397 + a925235 commit 6eccf83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/build-script-impl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3246,11 +3246,11 @@ function build_and_test_installable_package() {
32463246
with_pushd "${PKG_TESTS_SANDBOX_PARENT}" \
32473247
call tar xzf "${package_for_host}"
32483248

3249-
if python -c "import psutil" ; then
3249+
if python3 -c "import psutil" ; then
32503250
TIMEOUT_ARGS=--timeout=1200 # 20 minutes
32513251
fi
32523252
with_pushd "${PKG_TESTS_SOURCE_DIR}" \
3253-
call python "${LIT_EXECUTABLE_PATH}" . -sv --param package-path="${PKG_TESTS_SANDBOX}" --param test-exec-root="${PKG_TESTS_TEMPS}" --param llvm-bin-dir="${LLVM_BIN_DIR}" ${TIMEOUT_ARGS}
3253+
call python3 "${LIT_EXECUTABLE_PATH}" . -sv --param package-path="${PKG_TESTS_SANDBOX}" --param test-exec-root="${PKG_TESTS_TEMPS}" --param llvm-bin-dir="${LLVM_BIN_DIR}" ${TIMEOUT_ARGS}
32543254
fi
32553255
fi
32563256
}

0 commit comments

Comments
 (0)