Lines Matching refs:patterns
131 def get_last_msg(self, patterns, retries=0, sleep_seconds=0.2):
133 matching one of the patterns.
136 patterns: A regexp or a list of regexps to search the logs with.
138 the patters, it will not search for the other patterns.
139 retries: Number of times to retry if none of the patterns were
145 of the patterns matched.
148 if not type(patterns) in (list, tuple):
149 patterns = [patterns]
152 for pattern in patterns: