From 2135ffdd160c4227e24611ea69b20660f320bc14 Mon Sep 17 00:00:00 2001 From: Gladyston Franca Date: Mon, 27 Nov 2023 14:45:08 -0300 Subject: [PATCH] Fixing sdk rpc file path --- app/chip_tool/chip_tool.py | 6 +++--- .../python_testing/models/python_testing_hooks_proxy.py | 6 +++--- .../sdk_tests/support/python_testing/models/test_case.py | 3 +-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/chip_tool/chip_tool.py b/app/chip_tool/chip_tool.py index 37746ae1..d2198eb4 100644 --- a/app/chip_tool/chip_tool.py +++ b/app/chip_tool/chip_tool.py @@ -114,10 +114,10 @@ # DOCKER_PYTHON_TESTING_PATH = "/root/python_testing" # RPC Client Running on SDK Container -LOCAL_RPC_PYTHON_TESTING_PATH = BACKEND_ROOT / Path( - "test_collections/sdk_tests/support/python_testing/models/rpc_client/" +LOCAL_RPC_PYTHON_TESTING_PATH = Path( + "/home/ubuntu/certification-tool/backend/test_collections/sdk_tests/support/python_testing/models/rpc_client/test_harness_client.py" ) -DOCKER_RPC_PYTHON_TESTING_PATH = "/root/python_testing/rpc_client" +DOCKER_RPC_PYTHON_TESTING_PATH = "/root/python_testing/test_harness_client.py" # Docker Network diff --git a/test_collections/sdk_tests/support/python_testing/models/python_testing_hooks_proxy.py b/test_collections/sdk_tests/support/python_testing/models/python_testing_hooks_proxy.py index c26078da..5dce6255 100644 --- a/test_collections/sdk_tests/support/python_testing/models/python_testing_hooks_proxy.py +++ b/test_collections/sdk_tests/support/python_testing/models/python_testing_hooks_proxy.py @@ -20,7 +20,7 @@ class SDKPythonTestRunnerHooks(TestRunnerHooks): - is_finished = False + finished = False results: Queue def update_test(self) -> Union[dict, None]: @@ -31,10 +31,10 @@ def update_test(self) -> Union[dict, None]: return None def is_finished(self) -> bool: - return SDKPythonTestRunnerHooks.is_finished + return SDKPythonTestRunnerHooks.finished def __init__(self) -> None: - SDKPythonTestRunnerHooks.is_finished = False + SDKPythonTestRunnerHooks.finished = False SDKPythonTestRunnerHooks.results = Queue() def start(self, count: int) -> None: diff --git a/test_collections/sdk_tests/support/python_testing/models/test_case.py b/test_collections/sdk_tests/support/python_testing/models/test_case.py index 1ae9d886..83fd8f3e 100644 --- a/test_collections/sdk_tests/support/python_testing/models/test_case.py +++ b/test_collections/sdk_tests/support/python_testing/models/test_case.py @@ -39,7 +39,7 @@ # Command line params RUNNER_CLASS = "test_harness_client.py" -RUNNER_CLASS_PATH = "/root/python_testing/rpc_client" +RUNNER_CLASS_PATH = "/root/python_testing/rpc_client/" EXECUTABLE = "python3" @@ -159,7 +159,6 @@ async def setup(self) -> None: """Override Setup to log Python Test version.""" test_engine_logger.info(f"Python Test Version: {self.python_test_version}") try: - await super().setup() self.chip_tool = ChipTool() await self.chip_tool.start_container() assert self.chip_tool.is_running()