Skip to content

Commit 9b283bc

Browse files
authored
[ATfE] Use python executable path for picolibc tests (#70)
Currently, the wrapper command for running picolibc tests in ATfE includes a direct call to the `picolibc-test-wrapper.py` script, relying on the script's shebang line to invoke the python interpreter. This is a problem for invoking tests on Windows platofrms, as the naming of the Python 3 executable is not consistent with the one used on Unix - i.e. python vs python3. To fix this problem, this change adds the path for the python executable to that call. The path used is the one discovered by CMake as part of the `find_package(Python3 ...)` command.
1 parent 4e02f40 commit 9b283bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arm-software/embedded/arm-runtimes/meson-cross-build.txt.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ strip = '@LLVM_BINARY_DIR@/bin/llvm-strip@CMAKE_EXECUTABLE_SUFFIX@'
88
exe_wrapper = [
99
'sh',
1010
'-c',
11-
'test -z "$PICOLIBC_TEST" || @picolibc_test_executor_bin@ "$@" < /dev/null',
11+
'test -z "$PICOLIBC_TEST" || @Python_EXECUTABLE@ @picolibc_test_executor_bin@ "$@" < /dev/null',
1212
'@picolibc_test_executor_bin@',
1313
@meson_test_executor_params@]
1414

0 commit comments

Comments
 (0)