Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(testing): Move CloseSession call after factory reset in TC_CGEN_2_8 #37777

Open
wants to merge 2 commits into
base: v1.4-branch
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/python_testing/TC_CGEN_2_8.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ async def test_TC_CGEN_2_8(self):
"First CommissioningComplete failed",
)

# Close the commissioner session with the device to clean up resources
commissioner.CloseSession(nodeid=self.dut_node_id)

# Step 5: Factory reset is handled by test operator
self.step(5)
if not self.check_pics('PICS_USER_PROMPT'):
self.skip_all_remaining_steps(6)
return

# Close the commissioner session with the device to clean up resources
commissioner.CloseSession(nodeid=self.dut_node_id)

self.wait_for_user_input(prompt_msg="Manually trigger factory reset on the DUT, then continue")

# Step 6: Put device in commissioning mode (requiring user input, so skip in CI)
Expand Down
Loading