def do_list(): term_handler = handlers.TerminalHandler( verbosity=configuration.config.verbose + log.LogLevel.Info, machine_only=configuration.config.quiet) log.test_log.log_obj.add_handler(term_handler) entry_message() test_schedule = load_tests().schedule filter_with_config_tags(test_schedule) qrunner = query.QueryRunner(test_schedule) if configuration.config.suites: qrunner.list_suites() elif configuration.config.tests: qrunner.list_tests() elif configuration.config.all_tags: qrunner.list_tags() else: qrunner.list_suites() qrunner.list_tests() qrunner.list_tags() return 0
def __init__(self): term_handler = handlers.TerminalHandler( verbosity=configuration.config.verbose + log.LogLevel.Info) summary_handler = handlers.SummaryHandler() self.mp_handler = handlers.MultiprocessingHandlerWrapper( summary_handler, term_handler) self.mp_handler.async_process() log.test_log.log_obj.add_handler(self.mp_handler) entry_message()