project-chip / project-chip/matter-test-scripts
[Matter 1.4 SVE][TC-ICDM-2.1] UserActiveModeTriggerHint is false in the PICS, but script request it
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 19
- Forks
- 7
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 3
Description
UI-Python, Matter 1.4 SVE, TH: v2.11beta3.1+fall2024
UserActiveModeTriggerHint is false in the PICS, the test script should skip this step, but not.
PICS:
ICDM.S=1
ICDM.C=0
ICDM.S.A0000=1
ICDM.S.A0001=1
ICDM.S.A0002=1
ICDM.S.A0003=0
ICDM.S.A0004=0
ICDM.S.A0005=0
ICDM.S.A0006=0 UserActiveModeTriggerHint
ICDM.S.A0007=0 UserActiveModeTriggerInstruction
ICDM.S.A0008=0
ICDM.S.A0009=0
Test Log:
File "/root/python_testing/scripts/sdk/TC_ICDM_2_1.py", line 234, in test_TC_ICDM_2_1
self.set_bits_count(uatHintInstructionDepedentBitmap), 1, "UserActiveModeTriggerHint has more than 1 bit that is dependent on the UserActiveModeTriggerInstruction")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'uatHintInstructionDepedentBitmap' where it is not associated with a value
[MatterTest] 09-25 01:37:18.080 INFO "initiator" : true,
[MatterTest] 09-25 01:37:18.098 INFO "messageType" : 16,
[MatterTest] 09-25 01:37:18.100 INFO "needsAck" : false,
[MatterTest] 09-25 01:37:18.100 INFO "protocolId" : 0
[MatterTest] 09-25 01:37:18.103 INFO }
[MatterTest] 09-25 01:37:18.104 INFO }
[MatterTest] 09-25 01:37:18.106 INFO <<< [E:15333i S:1840 M:71206611 (Ack:127828441)] (S) Msg TX to 1:0000000012344321 [D2AA] [UDP:192.168.101.107:5540] --- Type 0000:10 (SecureChannel:StandaloneAck) (B:34)
[MatterTest] 09-25 01:37:18.107 ERROR
- Test test_TC_ICDM_2_1 failed for the following reason:
- cannot access local variable 'uatHintInstructionDepedentBitmap' where it is not associated with a value
- File "/root/python_testing/scripts/sdk/TC_ICDM_2_1.py", line 234, in test_TC_ICDM_2_1
- UnboundLocalError: cannot access local variable 'uatHintInstructionDepedentBitmap' where it is not associated with a value
ICD Management Cluster Test Plan.txt
TC-ICDM-2_1_2024_09_25_09_34_27.log
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with scripts/sdk/TC_ICDM_2_1.py around line 234 and compare the UserActiveModeTriggerHint PICS condition with the failing test log. Ensure the step is skipped when ICDM.S.A0006 is false and the dependent bitmap is not referenced when it was never assigned. Run TC-ICDM-2_1 against the provided PICS to confirm the test no longer raises UnboundLocalError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100