Fix lit/example/many-tests pickling issue
authorAlex Langford <apl@fb.com>
Fri, 14 Sep 2018 19:44:09 +0000 (19:44 +0000)
committerAlex Langford <apl@fb.com>
Fri, 14 Sep 2018 19:44:09 +0000 (19:44 +0000)
commita250f90efe8207e69e21d2f19e4dacb66d854ea9
tree88d15437404dcb963c334706ff8f50ca37c9fb90
parent7bff00e8419350996a1acdc95c289998c6db6357
Fix lit/example/many-tests pickling issue

Summary:
The multiprocess module uses pickling to transfer
information between processes and does not know how to pickle
the class created in the lit.cfg file and thus the example
fails.

Implement ManyTests in a separate file and import for the
example test passes

Patch by Nathan Lanza <nathan@lanza.io>

Differential Revision: https://reviews.llvm.org/D51328

llvm-svn: 342269
llvm/utils/lit/examples/many-tests/ManyTests.py [new file with mode: 0644]
llvm/utils/lit/examples/many-tests/lit.cfg