From: Nicki Křížek Date: Fri, 18 Jul 2025 10:13:12 +0000 (+0200) Subject: chg: test: Improve WatchLog API for pytest X-Git-Tag: v9.21.11~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf77bfacce0548b94b9a6c67eea3271158728f76;p=thirdparty%2Fbind9.git chg: test: Improve WatchLog API for pytest - Refactor and extend the `WatchLog.wait_for_line()` API: 1. To allow for usage of one or more FlexPatterns, i.e. either plain strings to be matched verbatim, or regular expressions. Both can be used interchangeably to provide the caller to write simple and readable test code, while allowing for increased complexity to allow special cases. 2. Always return the regex match, which allows the caller to identify which line was matched, as well as to extract any additional information, such as individual regex groups. - Add `WatchLog.wait_for_sequence()` and `WatchLog.wait_for_all()` helper functions Merge branch 'nicki/watchlog-improvements' into 'main' See merge request isc-projects/bind9!10618 --- cf77bfacce0548b94b9a6c67eea3271158728f76