# 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 logging import os import sys
import six from mach.decorators import Command from mozbuild.base import BinaryNotFoundException from mozbuild.base import MachCommandConditions as conditions
def setup_argument_parser_functional(): from firefox_ui_harness.arguments.base import FirefoxUIArguments from mozlog.structured import commandline
# Set the resources path which is used to serve test data via wptserve ifnot kwargs["server_root"]:
kwargs["server_root"] = os.path.join(fxui_dir, "resources")
# If called via "mach test" a dictionary of tests is passed in if"test_objects"in kwargs:
tests = [] for obj in kwargs["test_objects"]:
tests.append(obj["file_relpath"])
kwargs["tests"] = tests elifnot kwargs.get("tests"): # If no tests have been selected, set default ones
kwargs["tests"] = os.path.join(fxui_dir, "tests", "functional", "manifest.ini")
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.