selftest: make filter-subunit much more efficient for large knownfail lists
commit22128c718cadd34af892df102bd52df6a6b03303
authorAndrew Bartlett <abartlet@samba.org>
Tue, 6 Dec 2022 04:16:00 +0000 (6 17:16 +1300)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2022 13:07:29 +0000 (13 13:07 +0000)
treebb846e82aaa373e67c2d846768afe04c04229600
parent5259926de71d9915f6152d99e20cce3920ba4aeb
selftest: make filter-subunit much more efficient for large knownfail lists

By compiling the knownfail lists ahead of time we change a 20min test
into a 90sec test.

This could be improved further by combining this into a single regular expression,
but this is enough for now.  The 'reason' is thankfully not used.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15258

Pair-programmed-with: Joseph Sutton <josephsutton@catalyst.net.nz>

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
selftest/subunithelper.py