Skip to content

Commit

Permalink
Fixing sdk rpc file path
Browse files Browse the repository at this point in the history
  • Loading branch information
gladystonfranca committed Nov 27, 2023
1 parent 63e39e2 commit 2135ffd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions app/chip_tool/chip_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Check failure on line 118 in app/chip_tool/chip_tool.py

View workflow job for this annotation

GitHub Actions / Flake8

app/chip_tool/chip_tool.py#L118

Line too long (136 > 88 characters) (E501)
)
DOCKER_RPC_PYTHON_TESTING_PATH = "/root/python_testing/rpc_client"
DOCKER_RPC_PYTHON_TESTING_PATH = "/root/python_testing/test_harness_client.py"


# Docker Network
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


class SDKPythonTestRunnerHooks(TestRunnerHooks):
is_finished = False
finished = False
results: Queue

def update_test(self) -> Union[dict, None]:
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 2135ffd

Please sign in to comment.