speed up --pattern
authorJoey Hess <joeyh@joeyh.name>
Wed, 7 Dec 2022 17:46:16 +0000 (13:46 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 7 Dec 2022 17:51:22 +0000 (13:51 -0400)
commitac77aa40e70216b90b538fb523dde37a0c1a2970
tree6b1e3306ac9ad97ffec2771de7b3aad7bf88aa7d
parentb7ba6dfe48f7a164e8b86fde2144cd64cfee6d86
speed up --pattern

The splitting of the tests into parts for parallelism made --pattern
do extra work, because init tests have to be run for each part, but
many of the parts are empty.

For example, git-annex test --pattern '/move (ssh remote)/'
took 12 seconds to run before. This improves the runtime to 4 seconds.

Sponsored-by: Dartmouth College's Datalad project
Test/Framework.hs
doc/bugs/git_annex_test_never_exits__63__/comment_6_d12ddfb48706454eba1bd552a681e5ba._comment