# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os import unittest from collections import defaultdict from shutil import rmtree from tempfile import mkdtemp
import mozpack.path as mozpath from mach.logging import LoggingManager
from mozbuild.backend.configenvironment import ConfigEnvironment from mozbuild.frontend.emitter import TreeMetadataEmitter from mozbuild.frontend.reader import BuildReader
def _get_environment(self, name): """Obtain a new instance of a ConfigEnvironment for a known profile.
A new temporary object directory is created for the environment. The
environment is cleaned up automatically when the test finishes. """
config = CONFIGS[name]
config["substs"]["MOZ_UI_LOCALE"] = "en-US"
def _tree_paths(self, topdir, filename): for dirpath, dirnames, filenames in os.walk(topdir): for f in filenames: if f == filename: yield mozpath.relpath(mozpath.join(dirpath, f), topdir)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.