Lines Matching refs:pattern
767 def _expect(self, pattern, timeout=-1, *args, **kwargs): argument
776 return self.pexpect.expect(pattern, 0.1, *args, **kwargs)
786 def _expect_result(self, pattern, *args, **kwargs): argument
794 results = self._expect_results(pattern, *args, **kwargs)
798 def _expect_results(self, pattern, *args, **kwargs): argument
807 results = [line for line in output if self._match_pattern(line, pattern)]
811 def _match_pattern(line, pattern): argument
812 if isinstance(pattern, str):
813 pattern = re.compile(pattern)
815 if isinstance(pattern, typing.Pattern):
816 return pattern.match(line)
818 return any(NodeImpl._match_pattern(line, p) for p in pattern)
848 …pattern = (b"(" + join_fin_req + b")|(" + join_fin_rsp + b")|(" + join_ent_ntf + b")|(" + join_ent…
854 self._expect(pattern, timeout=timeout)