Quelle mach_test_package_commands.py
Sprache: Python
# 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 sys from argparse import Namespace
from mach.decorators import Command
here = os.path.abspath(os.path.dirname(__file__))
parser = None
logger = None
def run_gtest(context, **kwargs): from mozlog.commandline import setup_logging
logger.info( "mach calling run_gtest with prog=%s xre_path=%s cwd=%s utility_path=%s"
% (prog, xre_path, cwd, utility_path)
) # The gtest option parser ignores some options normally passed to the mozharness # command, so some hacking is required, for now:
extra_args = [arg for arg in args.args ifnot arg.startswith("-")] if extra_args:
os.environ["GTEST_FILTER"] = extra_args[0]
logger.info("GTEST_FILTER=%s" % extra_args[0])
logger.info( "mach calling android run_gtest with package=%s cwd=%s libxul=%s"
% (args.package, cwd, libxul_path)
) # The remote gtest option parser ignores some options normally passed to the mozharness # command, so some hacking is required, for now:
extra_args = [arg for arg in args.args ifnot arg.startswith("-")]
test_filter = extra_args[0] if extra_args elseNone
logger.info("test filter=%s" % test_filter)
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 ist noch experimentell.