chrome/test/mini_installer/installer_test.py
def _initialize():
    """Initializes the InstallerTest class.

    This entails setting the class attributes and adding the configured test
    methods to the class.
    """
    args = ArgumentParser().parse_args()

    log_level = (logging.ERROR if args.quiet else
                 logging.DEBUG if args.verbose else logging.INFO)
    LOGGER.setLevel(log_level)
    handler = logging.StreamHandler()
    handler.setFormatter(
        logging.Formatter(
            fmt='[%(asctime)s:%(filename)s(%(lineno)d)] %(message)s',
            datefmt='%m%d/%H%M%S'))
    LOGGER.addHandler(handler)

    # Pull args from the parent proc out of the environment block.
    if os.environ.get('CMI_FORCE_CLEAN', False):
        global _force_clean
        _force_clean = True
    InstallerTest._output_dir = os.environ.get('CMI_OUTPUT_DIR')
    installer_path = GetAbsoluteExecutablePath(
        os.environ.get('CMI_INSTALLER_PATH', 'mini_installer.exe'))
    previous_version_installer_path = GetAbsoluteExecutablePath(
        os.environ.get('CMI_PREVIOUS_VERSION_INSTALLER_PATH',
                       'previous_version_mini_installer.exe'))
    chromedriver_path = GetAbsoluteExecutablePath(
        os.environ.get('CMI_CHROMEDRIVER_PATH', 'chromedriver.exe'))
    config_path = GetAbsoluteConfigPath(
        os.environ.get('CMI_CONFIG', 'config.config'))

    InstallerTest._variable_expander = VariableExpander(
        installer_path, previous_version_installer_path, chromedriver_path,
        args.quiet, InstallerTest._output_dir)
    InstallerTest._config = ParseConfigFile(config_path,
                                            InstallerTest._variable_expander)

    # Add a test_Foo function to the InstallerTest class for each test in
    # the config file.
    run_test_fn = getattr(InstallerTest, 'run_test')
    for test in InstallerTest._config.tests:
        setattr(InstallerTest, 'test_' + test['name'], run_test_fn)
Initializes the InstallerTest class.

    This entails setting the class attributes and adding the configured test
    methods to the class.
    
Initializes the InstallerTest class.
This entails setting the class attributes and adding the configured test
methods to the class.
Initializes the InstallerTest class . This entails setting the class attributes and adding the configured test methods to the class .
def _initialize():
    args = ArgumentParser().parse_args()
    log_level = (logging.ERROR if args.quiet else
                 logging.DEBUG if args.verbose else logging.INFO)
    LOGGER.setLevel(log_level)
    handler = logging.StreamHandler()
    handler.setFormatter(
        logging.Formatter(
            fmt='[%(asctime)s:%(filename)s(%(lineno)d)] %(message)s',
            datefmt='%m%d/%H%M%S'))
    LOGGER.addHandler(handler)
    if os.environ.get('CMI_FORCE_CLEAN', False):
        global _force_clean
        _force_clean = True
    InstallerTest._output_dir = os.environ.get('CMI_OUTPUT_DIR')
    installer_path = GetAbsoluteExecutablePath(
        os.environ.get('CMI_INSTALLER_PATH', 'mini_installer.exe'))
    previous_version_installer_path = GetAbsoluteExecutablePath(
        os.environ.get('CMI_PREVIOUS_VERSION_INSTALLER_PATH',
                       'previous_version_mini_installer.exe'))
    chromedriver_path = GetAbsoluteExecutablePath(
        os.environ.get('CMI_CHROMEDRIVER_PATH', 'chromedriver.exe'))
    config_path = GetAbsoluteConfigPath(
        os.environ.get('CMI_CONFIG', 'config.config'))
    InstallerTest._variable_expander = VariableExpander(
        installer_path, previous_version_installer_path, chromedriver_path,
        args.quiet, InstallerTest._output_dir)
    InstallerTest._config = ParseConfigFile(config_path,
                                            InstallerTest._variable_expander)
    run_test_fn = getattr(InstallerTest, 'run_test')
    for test in InstallerTest._config.tests:
        setattr(InstallerTest, 'test_' + test['name'], run_test_fn)
def _initialize ( ) : args = ArgumentParser ( ) . parse_args ( ) log_level = ( logging . ERROR if args . quiet else logging . DEBUG if args . verbose else logging . INFO ) LOGGER . setLevel ( log_level ) handler = logging . StreamHandler ( ) handler . setFormatter ( logging . Formatter ( fmt = '[%(asctime)s:%(filename)s(%(lineno)d)] %(message)s' , datefmt = '%m%d/%H%M%S' ) ) LOGGER . addHandler ( handler ) if os . environ . get ( 'CMI_FORCE_CLEAN' , False ) : global _force_clean _force_clean = True InstallerTest . _output_dir = os . environ . get ( 'CMI_OUTPUT_DIR' ) installer_path = GetAbsoluteExecutablePath ( os . environ . get ( 'CMI_INSTALLER_PATH' , 'mini_installer.exe' ) ) previous_version_installer_path = GetAbsoluteExecutablePath ( os . environ . get ( 'CMI_PREVIOUS_VERSION_INSTALLER_PATH' , 'previous_version_mini_installer.exe' ) ) chromedriver_path = GetAbsoluteExecutablePath ( os . environ . get ( 'CMI_CHROMEDRIVER_PATH' , 'chromedriver.exe' ) ) config_path = GetAbsoluteConfigPath ( os . environ . get ( 'CMI_CONFIG' , 'config.config' ) ) InstallerTest . _variable_expander = VariableExpander ( installer_path , previous_version_installer_path , chromedriver_path , args . quiet , InstallerTest . _output_dir ) InstallerTest . _config = ParseConfigFile ( config_path , InstallerTest . _variable_expander ) run_test_fn = getattr ( InstallerTest , 'run_test' ) for test in InstallerTest . _config . tests : setattr ( InstallerTest , 'test_' + test [ 'name' ] , run_test_fn )
Initializes the InstallerTest class.
Initializes the InstallerTest class .
"""Initializes the InstallerTest class.

    This entails setting the class attributes and adding the configured test
    methods to the class.
    """ # Pull args from the parent proc out of the environment block. # Add a test_Foo function to the InstallerTest class for each test in # the config file.