return self._collect(True, True)
class TestBuilder(object):
- def __init__(self, rootdir, workdir, selectors, annotate, cleanup_workdir, cleanup_sharedlibs):
+ def __init__(self, rootdir, workdir, selectors, annotate,
- cleanup_workdir, with_pyregr):
++ cleanup_workdir, cleanup_sharedlibs, with_pyregr):
self.rootdir = rootdir
self.workdir = workdir
self.selectors = selectors
self.annotate = annotate
self.cleanup_workdir = cleanup_workdir
+ self.cleanup_sharedlibs = cleanup_sharedlibs
+ self.with_pyregr = with_pyregr
def build_suite(self):
suite = unittest.TestSuite()
self.expect_errors = expect_errors
self.annotate = annotate
self.cleanup_workdir = cleanup_workdir
++ self.cleanup_sharedlibs = cleanup_sharedlibs
unittest.TestCase.__init__(self)
def shortDescription(self):
if options.filetests:
filetests = TestBuilder(ROOTDIR, WORKDIR, selectors,
- options.annotate_source,
- options.cleanup_workdir,
- options.pyregr)
+ options.annotate_source, options.cleanup_workdir,
- options.cleanup_sharedlibs)
- test_suite.addTests(filetests.build_suite())
++ options.cleanup_sharedlibs, options.pyregr)
+ test_suite.addTests([filetests.build_suite()])
unittest.TextTestRunner(verbosity=options.verbosity).run(test_suite)