Skip to content

Commit 4540568

Browse files
cecillerestyled-commits
authored andcommitted
TC-CCTRL-2.2: Fix user params (#34674)
* TC-CCTRL-2.2: Fix user params * Restyled by isort --------- Co-authored-by: Restyled.io <[email protected]>
1 parent 21feaa2 commit 4540568

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/python_testing/TC_CCTRL_2_2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class TC_CCTRL_2_2(MatterBaseTest):
4545
async def setup_class(self):
4646
super().setup_class()
4747
# TODO: confirm whether we can open processes like this on the TH
48-
app = self.matter_test_config.user_params.get("th_server_app_path", None)
48+
app = self.user_params.get("th_server_app_path", None)
4949
if not app:
5050
asserts.fail('This test requires a TH_SERVER app. Specify app path with --string-arg th_server_app_path:<path_to_app>')
5151

src/python_testing/test_testing/test_TC_CCNTL_2_2.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
#
1818

1919
import base64
20-
import click
2120
import os
2221
import pathlib
2322
import sys
2423
import typing
2524

2625
import chip.clusters as Clusters
26+
import click
2727
from chip import ChipDeviceCtrl
2828
from chip.clusters import Attribute
2929
from chip.interaction_model import InteractionModelError, Status
@@ -180,7 +180,7 @@ def main(th_server_app: str):
180180
pics = {"PICS_SDK_CI_ONLY": True}
181181
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)
182182
config = MatterTestConfig()
183-
config.user_params = {'th_server_app_path': th_server_app}
183+
config.global_test_params = {'th_server_app_path': th_server_app}
184184
test_runner.set_test_config(config)
185185

186186
test_runner.run_test_with_mock(dynamic_invoke_return, dynamic_event_return, wildcard())

0 commit comments

Comments
 (0)