Skip to content

Commit

Permalink
[CI] Add keepSubscriptions supports to matter_yamltests (project-chip…
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored Aug 24, 2023
1 parent a35067b commit c16c419
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def __get_arguments(self, request):
arguments, request.min_interval, "min-interval")
arguments = self.__maybe_add(
arguments, request.max_interval, "max-interval")
arguments = self.__maybe_add(
arguments, request.keep_subscriptions, "keepSubscriptions")
arguments = self.__maybe_add(arguments, request.timed_interaction_timeout_ms,
"timedInteractionTimeoutMs")
arguments = self.__maybe_add(
Expand Down
5 changes: 5 additions & 0 deletions scripts/py_matter_yamltests/matter_yamltests/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def __init__(self, test: dict, config: dict, definitions: SpecDefinitions, pics_
self.fabric_filtered = _value_or_none(test, 'fabricFiltered')
self.min_interval = _value_or_none(test, 'minInterval')
self.max_interval = _value_or_none(test, 'maxInterval')
self.keep_subscriptions = _value_or_none(test, 'keepSubscriptions')
self.timed_interaction_timeout_ms = _value_or_none(
test, 'timedInteractionTimeoutMs')
self.timeout = _value_or_none(test, 'timeout')
Expand Down Expand Up @@ -659,6 +660,10 @@ def min_interval(self):
def max_interval(self):
return self._test.max_interval

@property
def keep_subscriptions(self):
return self._test.keep_subscriptions

@property
def timed_interaction_timeout_ms(self):
return self._test.timed_interaction_timeout_ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def __check_test_step(self, config: dict, content):
'saveResponseAs': str,
'minInterval': int,
'maxInterval': int,
'keepSubscriptions': bool,
'timeout': int,
'timedInteractionTimeoutMs': int,
'dataVersion': (list, int, str), # Can be a variable
Expand Down

0 comments on commit c16c419

Please sign in to comment.