From 3421df69e1d8c2f6fb2d409409b912031a1cb108 Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Thu, 7 Dec 2023 15:49:25 +0100 Subject: [PATCH 1/2] Chore: Update integration tests configuration Now that the python paths are relative, they can be versionned. --- integration-tests/project-folder/.vscode/settings.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/integration-tests/project-folder/.vscode/settings.json b/integration-tests/project-folder/.vscode/settings.json index 38368e90..0ad545d6 100644 --- a/integration-tests/project-folder/.vscode/settings.json +++ b/integration-tests/project-folder/.vscode/settings.json @@ -2,5 +2,11 @@ "bitbake.loggingLevel": "debug", "bitbake.pathToBitbakeFolder": "${workspaceFolder}/sources/poky/bitbake", "bitbake.pathToEnvScript": "${workspaceFolder}/sources/poky/oe-init-build-env", - "bitbake.pathToBuildFolder": "${workspaceFolder}/build" + "bitbake.pathToBuildFolder": "${workspaceFolder}/build", + "python.autoComplete.extraPaths": [ + "${workspaceFolder}/sources/poky/bitbake/lib" + ], + "python.analysis.extraPaths": [ + "${workspaceFolder}/sources/poky/bitbake/lib" + ] } From c0dde4dfad751a5703aebf9777a84fab3490c38b Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Thu, 7 Dec 2023 15:49:59 +0100 Subject: [PATCH 2/2] Chore: Keep host path in sync with container path Rather than mounting inside /home/yoctouser, mount the project folder directly. Makes it easier to test out changes. --- integration-tests/remote-session/start-container.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration-tests/remote-session/start-container.sh b/integration-tests/remote-session/start-container.sh index 469ab006..4ab19727 100755 --- a/integration-tests/remote-session/start-container.sh +++ b/integration-tests/remote-session/start-container.sh @@ -6,6 +6,6 @@ docker build --tag=vscode-bitbake-test './docker-image' # of the poky symlink docker run --rm \ -p2222:22 \ - -v "$(realpath ../..)":'/home/yoctouser/vscode-bitbake' \ - --workdir '/home/yoctouser/vscode-bitbake/integration-tests/project-folder' \ + -v "$(realpath ../..)":"$(realpath ../..)" \ + --workdir "$(realpath .)" \ -it vscode-bitbake-test