@capture_logging(
        lambda self, logger: logger.flush_tracebacks(ZeroDivisionError)
    )
    def test_first_error(self, logger):
        d = gather_deferreds(
            [succeed('SUCCESS1'),
             fail(ZeroDivisionError('failure1')),
             succeed('SUCCESS2')])

        self.failureResultOf(d, FirstError)
Hook to add global options
dataset/ETHPy150Open ClusterHQ/flocker/flocker/common/test/test_defer.py/GatherDeferredsTests.test_first_error--crossover with--dataset/ETHPy150Open openstack/python-senlinclient/senlinclient/plugin.py/build_option_parser