]> git.notmuchmail.org Git - notmuch/commit
tests: remove entangling corpus index optimization
authorJameson Graef Rollins <jrollins@finestructure.net>
Sat, 4 May 2019 20:57:43 +0000 (20:57 +0000)
committerDavid Bremner <david@tethera.net>
Tue, 7 May 2019 09:53:57 +0000 (06:53 -0300)
commit591388ccd1d7c631d1f98694543d1a80fc521d9f
tree8d0bba6633e5d3ae13ef584a043b596669b7c987
parent7f7af27bd8320fd7a7e7ab50bf0c206da3775635
tests: remove entangling corpus index optimization

The add_email_corpus test utility includes logic that tries to re-use
an index of the corpus if available.  This was seemingly done as an
optimization, so that every test that uses the corpus didn't have to
create it's own index of the corpus.  However, this has the perverse
side effect of entangling tests together, and breaks parallelization.

Forcing each test to do it's own index does increase the overall time
of the test slightly (~6%), but this will be more than made up for in
the next patch that introduces paraellization.
test/.gitignore
test/Makefile.local
test/notmuch-test
test/test-lib.sh