Skip to content

Commit

Permalink
Update src/python_testing/matter_testing_support.py
Browse files Browse the repository at this point in the history
Co-authored-by: Terence Hampson <[email protected]>
  • Loading branch information
cecille and tehampson authored Feb 15, 2024
1 parent e371189 commit eb18b1f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/python_testing/matter_testing_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,8 +1009,13 @@ def skip_all_remaining_steps(self, starting_step):
it easier to validate against the test plan for correctness.
'''
steps = self.get_test_steps(self.current_test_info.name)
starting_step = [idx for idx, step in enumerate(steps) if step.test_plan_number == starting_step][0]
remaining = steps[starting_step:]
for idx, step in enumerate(steps):
if step.test_plan_number == starting_step:
starting_step_idx = idx
break
else:
raise TestingExpection("skip_all_remaining_steps was provided with invalid starting_step_num")
remaining = steps[starting_step_idx:]
for step in remaining:
self.skip_step(step.test_plan_number)

Expand Down

0 comments on commit eb18b1f

Please sign in to comment.