Split out the passthrough tests into separate suites. The MongoDB deployment is started up by resmoke.py so that we can record the success/failure of each individual test in MCI. Added support for parallel execution of tests by dispatching to multiple MongoDB deployments. Added support for grouping different kinds of tests (e.g. C++ unit tests, dbtests, and jstests) so that they can be run together. This allows for customizability in specifying what tests to execute when changes are made to a particular part of the code.
38 lines
862 B
Python
38 lines
862 B
Python
"""
|
|
Module to hold the logger instances themselves.
|
|
"""
|
|
|
|
from __future__ import absolute_import
|
|
|
|
import logging
|
|
|
|
EXECUTOR_LOGGER_NAME = "executor"
|
|
FIXTURE_LOGGER_NAME = "fixture"
|
|
TESTS_LOGGER_NAME = "tests"
|
|
|
|
def new_logger(logger_name, parent=None):
|
|
"""
|
|
Returns a new logging.Logger instance with the specified name.
|
|
"""
|
|
|
|
# Set up the logger to handle all messages it receives.
|
|
logger = logging.Logger(logger_name, level=logging.DEBUG)
|
|
|
|
if parent is not None:
|
|
logger.parent = parent
|
|
logger.propagate = True
|
|
|
|
return logger
|
|
|
|
EXECUTOR = new_logger(EXECUTOR_LOGGER_NAME)
|
|
FIXTURE = new_logger(FIXTURE_LOGGER_NAME)
|
|
TESTS = new_logger(TESTS_LOGGER_NAME)
|
|
|
|
LOGGERS_BY_NAME = {
|
|
EXECUTOR_LOGGER_NAME: EXECUTOR,
|
|
FIXTURE_LOGGER_NAME: FIXTURE,
|
|
TESTS_LOGGER_NAME: TESTS,
|
|
}
|
|
|
|
_BUILDLOGGER_FALLBACK = new_logger("fallback")
|