From 69d3f541836f0cf9b7591cb0cdfe83f2231bbb83 Mon Sep 17 00:00:00 2001 From: Lucas <12496191+lucashuy@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:43:22 -0800 Subject: [PATCH] Exclude dotnet8 runtimes for Docker related tests --- tests/integration/buildcmd/test_build_cmd.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/integration/buildcmd/test_build_cmd.py b/tests/integration/buildcmd/test_build_cmd.py index b7193a6ca6..ed38e60b80 100644 --- a/tests/integration/buildcmd/test_build_cmd.py +++ b/tests/integration/buildcmd/test_build_cmd.py @@ -137,6 +137,9 @@ def test_with_default_requirements(self, runtime, use_container): ] ) def test_with_dockerfile_extension(self, runtime, use_container): + if not runtime_supported_by_docker(f"python{runtime}") and IS_WINDOWS: + self.skipTest(RUNTIME_NOT_SUPPORTED_BY_DOCKER_MSG) + _tag = uuid4().hex overrides = { "Runtime": runtime, @@ -1230,6 +1233,9 @@ def test_dotnet_in_process(self, runtime, code_uri, mode, architecture="x86_64") command_result = run_command(cmdlist, cwd=self.working_dir, env=newenv) self.assertEqual(command_result.process.returncode, 0) + if not runtime_supported_by_docker(runtime) and IS_WINDOWS: + self.skipTest(RUNTIME_NOT_SUPPORTED_BY_DOCKER_MSG) + self._verify_built_artifact( self.default_build_dir, self.FUNCTION_LOGICAL_ID, @@ -1280,6 +1286,9 @@ def test_dotnet_in_process(self, runtime, code_uri, mode, architecture="x86_64") ) @skipIf(SKIP_DOCKER_TESTS or SKIP_DOCKER_BUILD, SKIP_DOCKER_MESSAGE) def test_dotnet_in_container_mount_with_write_explicit(self, runtime, code_uri, mode, architecture="x86_64"): + if not runtime_supported_by_docker(runtime) and IS_WINDOWS: + self.skipTest(RUNTIME_NOT_SUPPORTED_BY_DOCKER_MSG) + overrides = { "Runtime": runtime, "CodeUri": code_uri, @@ -1360,6 +1369,9 @@ def test_dotnet_in_container_mount_with_write_interactive( mode, architecture="x86_64", ): + if not runtime_supported_by_docker(runtime) and IS_WINDOWS: + self.skipTest(RUNTIME_NOT_SUPPORTED_BY_DOCKER_MSG) + overrides = { "Runtime": runtime, "CodeUri": code_uri,