Skip to content

Commit 84c7eb4

Browse files
committed
Solve metacallcli-py-tsx test.
1 parent 5fe37ea commit 84c7eb4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/cli/metacallcli/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_TS AND OPTION_BUILD_SCRIPTS AND
399399

400400
if(OPTION_BUILD_LOADERS_PY)
401401
add_test(NAME ${target}-py-tsx
402-
COMMAND ${TEST_COMMAND} "echo 'load py cli-test-tsx.py\nexit' | $<TARGET_FILE:${target}> | ${GREP_COMMAND} \"Hello metaprogrammer\""
402+
COMMAND ${TEST_COMMAND} "echo 'load py cli-test-tsx.py\nexit' | $<TARGET_FILE:${target}> | ${GREP_COMMAND} \"Hello World\""
403403
WORKING_DIRECTORY ${LOADER_SCRIPT_PATH}/templating
404404
)
405405
set_property(TEST ${target}-py-tsx
@@ -409,6 +409,9 @@ if(OPTION_BUILD_LOADERS AND OPTION_BUILD_LOADERS_TS AND OPTION_BUILD_SCRIPTS AND
409409
""
410410
${TESTS_ENVIRONMENT_VARIABLES}
411411
PROJECT_METACALL_PORTS_DIRECTORY=${CMAKE_SOURCE_DIR}/source/ports/py_port
412+
# Note: Here we have to set up the LOADER_SCRIPT_PATH to the CWD as a difference to ${target}-tsx-templating test
413+
# which does not require this apparently (due to NodeJS resolve system), probably this has to be reviewed
414+
LOADER_SCRIPT_PATH=${LOADER_SCRIPT_PATH}/templating
412415
)
413416
endif()
414417
endif()

0 commit comments

Comments
 (0)