Skip to content

Commit

Permalink
TC-CCTRL-2.2: Fix user params (#34674)
Browse files Browse the repository at this point in the history
* TC-CCTRL-2.2: Fix user params

* Restyled by isort

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Aug 10, 2024
1 parent 5ac0dc4 commit 2330370
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/python_testing/TC_CCTRL_2_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class TC_CCTRL_2_2(MatterBaseTest):
async def setup_class(self):
super().setup_class()
# TODO: confirm whether we can open processes like this on the TH
app = self.matter_test_config.user_params.get("th_server_app_path", None)
app = self.user_params.get("th_server_app_path", None)
if not app:
asserts.fail('This test requires a TH_SERVER app. Specify app path with --string-arg th_server_app_path:<path_to_app>')

Expand Down
4 changes: 2 additions & 2 deletions src/python_testing/test_testing/test_TC_CCNTL_2_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
#

import base64
import click
import os
import pathlib
import sys
import typing

import chip.clusters as Clusters
import click
from chip import ChipDeviceCtrl
from chip.clusters import Attribute
from chip.interaction_model import InteractionModelError, Status
Expand Down Expand Up @@ -180,7 +180,7 @@ def main(th_server_app: str):
pics = {"PICS_SDK_CI_ONLY": True}
test_runner = MyMock('TC_CCTRL_2_2', 'TC_CCTRL_2_2', 'test_TC_CCTRL_2_2', 1, paa_trust_store_path=paa_path, pics=pics)
config = MatterTestConfig()
config.user_params = {'th_server_app_path': th_server_app}
config.global_test_params = {'th_server_app_path': th_server_app}
test_runner.set_test_config(config)

test_runner.run_test_with_mock(dynamic_invoke_return, dynamic_event_return, wildcard())
Expand Down

0 comments on commit 2330370

Please sign in to comment.