Skip to content

Commit 2218921

Browse files
committed
Add PICS argument for CI
1 parent c50fefb commit 2218921

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/python_testing/TC_CGEN_2_2.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
# --commissioning-method on-network
2929
# --discriminator 1234
3030
# --passcode 20202021
31+
# --PICS src/app/tests/suites/certification/ci-pics-values
3132
# --trace-to json:${TRACE_TEST_JSON}.json
3233
# --trace-to perfetto:${TRACE_TEST_PERFETTO}.perfetto
3334
# factory-reset: true
@@ -327,6 +328,9 @@ async def test_TC_CGEN_2_2(self):
327328
attribute=self.cluster_cgen.Attributes.BasicCommissioningInfo)
328329
maxFailsafe = basic_commissioning_info.maxCumulativeFailsafeSeconds
329330
logger.info(f'Step #2: The MaxCumulativeFailsafeSeconds (max_fail_safe): {maxFailsafe}')
331+
maxFailsafe = 20
332+
logger.info(
333+
f'Step #2: Overridden MaxCumulativeFailsafeSeconds (max_fail_safe) to {maxFailsafe} seconds for optimal execution in Cert and to avoid long waits')
330334

331335
# TH1 steps #3 through #5 using the function run_steps_3_to_5
332336
self.step('3-5')
@@ -344,7 +348,7 @@ async def test_TC_CGEN_2_2(self):
344348
asserts.assert_equal(trusted_root_list_original_size_updated, trusted_root_list_original_size + 1,
345349
"Unexpected number of entries in the TrustedRootCertificates table after update")
346350

347-
# Optionally, check if the new certificate is in the updated list
351+
# Check if the new certificate is in the updated list
348352
asserts.assert_in(new_root_cert, trusted_root_list_original_updated,
349353
"New root certificate was not added to the trusted root list.")
350354

@@ -619,7 +623,6 @@ async def test_TC_CGEN_2_2(self):
619623
"The fabrics list size should match the original fabrics list size + 1.")
620624

621625
self.step(29)
622-
# logger.info("Step #29 - TH1 sends ArmFailSafe command to the DUT with ExpiryLengthSeconds field set to PIXIT.CGEN.FailsafeExpiryLengthSeconds and the Breadcrumb value as 1")
623626
cmd = Clusters.GeneralCommissioning.Commands.ArmFailSafe(expiryLengthSeconds=maxFailsafe, breadcrumb=1)
624627
resp = await self.send_single_cmd(
625628
dev_ctrl=self.default_controller,

0 commit comments

Comments
 (0)