selftest: make filter-subunit much more efficient for large knownfail lists
authorAndrew Bartlett <abartlet@samba.org>
Tue, 6 Dec 2022 04:16:00 +0000 (17:16 +1300)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2022 20:37:58 +0000 (21:37 +0100)
commit26249f6c06591ba87d45e2a0f7322082a157fa06
tree72f9372fc1150422c5d41f6656bcc88858605a5e
parent2ea3f2db8087e0a2c4a18c633b039c722cb6f829
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>
(cherry picked from commit 22128c718cadd34af892df102bd52df6a6b03303)
selftest/subunithelper.py