• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python mozpack.path函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中mozpack.path函数的典型用法代码示例。如果您正苦于以下问题:Python path函数的具体用法?Python path怎么用?Python path使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了path函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: ReftestCommand

def ReftestCommand(func):
    """Decorator that adds shared command arguments to reftest commands."""

    debugger = CommandArgument('--debugger', metavar='DEBUGGER',
        help=DEBUGGER_HELP)
    func = debugger(func)

    flter = CommandArgument('--filter', metavar='REGEX',
        help='A JS regular expression to match test URLs against, to select '
             'a subset of tests to run.')
    func = flter(func)

    path = CommandArgument('test_file', nargs='?', metavar='MANIFEST',
        help='Reftest manifest file, or a directory in which to select '
             'reftest.list. If omitted, the entire test suite is executed.')
    func = path(func)

    parallel = CommandArgument('--parallel', action='store_true',
        help='Run tests in parallel.')
    func = parallel(func)

    e10s = CommandArgument('--e10s', action='store_true',
                           help='Use content processes.')
    func = e10s(func)

    return func
开发者ID:elefant,项目名称:gecko-dev,代码行数:26,代码来源:mach_commands.py


示例2: ReftestCommand

def ReftestCommand(func):
    """Decorator that adds shared command arguments to reftest commands."""

    debugger = CommandArgument("--debugger", metavar="DEBUGGER", help=DEBUGGER_HELP)
    func = debugger(func)

    debugger_args = CommandArgument(
        "--debugger-args", metavar="DEBUGGER_ARGS", help="Arguments to pass to the debugger."
    )
    func = debugger_args(func)

    flter = CommandArgument(
        "--filter",
        metavar="REGEX",
        help="A JS regular expression to match test URLs against, to select " "a subset of tests to run.",
    )
    func = flter(func)

    path = CommandArgument(
        "test_file",
        nargs="?",
        metavar="MANIFEST",
        help="Reftest manifest file, or a directory in which to select "
        "reftest.list. If omitted, the entire test suite is executed.",
    )
    func = path(func)

    parallel = CommandArgument("--parallel", action="store_true", help="Run tests in parallel.")
    func = parallel(func)

    shuffle = CommandArgument("--shuffle", action="store_true", help="Run tests in random order.")
    func = shuffle(func)

    e10s = CommandArgument("--e10s", action="store_true", help="Use content processes.")
    func = e10s(func)

    extraPrefs = CommandArgument(
        "--setpref",
        action="append",
        default=[],
        dest="extraPrefs",
        metavar="PREF=VALUE",
        help="Set prefs in the reftest profile.",
    )
    func = extraPrefs(func)

    totalChunks = CommandArgument("--total-chunks", help="How many chunks to split the tests up into.")
    func = totalChunks(func)

    thisChunk = CommandArgument("--this-chunk", help="Which chunk to run between 1 and --total-chunks.")
    func = thisChunk(func)

    return func
开发者ID:msliu,项目名称:gecko-dev,代码行数:53,代码来源:mach_commands.py


示例3: B2GCommand

def B2GCommand(func):
    """Decorator that adds shared command arguments to b2g reftest commands."""

    busybox = CommandArgument('--busybox', default=None,
        help='Path to busybox binary to install on device')
    func = busybox(func)

    logdir = CommandArgument('--logdir', default=None,
        help='directory to store log files')
    func = logdir(func)

    sdcard = CommandArgument('--sdcard', default="10MB",
        help='Define size of sdcard: 1MB, 50MB...etc')
    func = sdcard(func)

    emulator_res = CommandArgument('--emulator-res', default='800x1000',
        help='Emulator resolution of the format \'<width>x<height>\'')
    func = emulator_res(func)

    marionette = CommandArgument('--marionette', default=None,
        help='host:port to use when connecting to Marionette')
    func = marionette(func)

    totalChunks = CommandArgument('--total-chunks', dest='totalChunks',
        type = int,
        help = 'How many chunks to split the tests up into.')
    func = totalChunks(func)

    thisChunk = CommandArgument('--this-chunk', dest='thisChunk',
        type = int,
        help = 'Which chunk to run between 1 and --total-chunks.')
    func = thisChunk(func)

    flter = CommandArgument('--filter', metavar='REGEX',
        help='A JS regular expression to match test URLs against, to select '
             'a subset of tests to run.')
    func = flter(func)

    oop = CommandArgument('--enable-oop', action='store_true', dest='oop',
        help = 'Run tests in out-of-process mode.')
    func = oop(func)

    path = CommandArgument('test_file', default=None, nargs='?',
        metavar='TEST',
        help='Test to run. Can be specified as a single file, a ' \
            'directory, or omitted. If omitted, the entire test suite is ' \
            'executed.')
    func = path(func)

    return func
开发者ID:stormandsun,项目名称:firefox,代码行数:50,代码来源:mach_commands.py


示例4: ReftestCommand

def ReftestCommand(func):
    """Decorator that adds shared command arguments to reftest commands."""

    debugger = CommandArgument('--debugger', metavar='DEBUGGER',
        help=DEBUGGER_HELP)
    func = debugger(func)

    debugger_args = CommandArgument('--debugger-args', metavar='DEBUGGER_ARGS',
        help='Arguments to pass to the debugger.')
    func = debugger_args(func)

    flter = CommandArgument('--filter', metavar='REGEX',
        help='A JS regular expression to match test URLs against, to select '
             'a subset of tests to run.')
    func = flter(func)

    path = CommandArgument('test_file', nargs='?', metavar='MANIFEST',
        help='Reftest manifest file, or a directory in which to select '
             'reftest.list. If omitted, the entire test suite is executed.')
    func = path(func)

    parallel = CommandArgument('--parallel', action='store_true',
        help='Run tests in parallel.')
    func = parallel(func)

    shuffle = CommandArgument('--shuffle', action='store_true',
        help='Run tests in random order.')
    func = shuffle(func)

    e10s = CommandArgument('--e10s', action='store_true',
        help='Use content processes.')
    func = e10s(func)

    extraPrefs = CommandArgument('--setpref', action='append',
        default=[], dest='extraPrefs', metavar='PREF=VALUE',
        help='Set prefs in the reftest profile.')
    func = extraPrefs(func)

    totalChunks = CommandArgument('--total-chunks',
        help = 'How many chunks to split the tests up into.')
    func = totalChunks(func)

    thisChunk = CommandArgument('--this-chunk',
        help = 'Which chunk to run between 1 and --total-chunks.')
    func = thisChunk(func)

    return func
开发者ID:martasect,项目名称:gecko,代码行数:47,代码来源:mach_commands.py


示例5: B2GCommand

def B2GCommand(func):
    """Decorator that adds shared command arguments to b2g mochitest commands."""

    busybox = CommandArgument('--busybox', default=None,
        help='Path to busybox binary to install on device')
    func = busybox(func)

    logcatdir = CommandArgument('--logcat-dir', default=None,
        help='directory to store logcat dump files')
    func = logcatdir(func)

    profile = CommandArgument('--profile', default=None,
        help='for desktop testing, the path to the \
              gaia profile to use')
    func = profile(func)

    geckopath = CommandArgument('--gecko-path', default=None,
        help='the path to a gecko distribution that should \
              be installed on the emulator prior to test')
    func = geckopath(func)

    nowindow = CommandArgument('--no-window', action='store_true', default=False,
        help='Pass --no-window to the emulator')
    func = nowindow(func)

    sdcard = CommandArgument('--sdcard', default="10MB",
        help='Define size of sdcard: 1MB, 50MB...etc')
    func = sdcard(func)

    emulator = CommandArgument('--emulator', default='arm',
        help='Architecture of emulator to use: x86 or arm')
    func = emulator(func)

    marionette = CommandArgument('--marionette', default=None,
        help='host:port to use when connecting to Marionette')
    func = marionette(func)

    path = CommandArgument('test_file', default=None, nargs='?',
        metavar='TEST',
        help='Test to run. Can be specified as a single file, a ' \
            'directory, or omitted. If omitted, the entire test suite is ' \
            'executed.')
    func = path(func)

    return func
开发者ID:lubolu,项目名称:releases-mozilla-central,代码行数:45,代码来源:mach_commands.py


示例6: B2GCommand

def B2GCommand(func):
    """Decorator that adds shared command arguments to b2g mochitest commands."""

    busybox = CommandArgument("--busybox", default=None, help="Path to busybox binary to install on device")
    func = busybox(func)

    logdir = CommandArgument("--logdir", default=None, help="directory to store log files")
    func = logdir(func)

    sdcard = CommandArgument("--sdcard", default="10MB", help="Define size of sdcard: 1MB, 50MB...etc")
    func = sdcard(func)

    emulator_res = CommandArgument(
        "--emulator-res", default="800x1000", help="Emulator resolution of the format '<width>x<height>'"
    )
    func = emulator_res(func)

    marionette = CommandArgument("--marionette", default=None, help="host:port to use when connecting to Marionette")
    func = marionette(func)

    totalChunks = CommandArgument(
        "--total-chunks", dest="totalChunks", type=int, help="How many chunks to split the tests up into."
    )
    func = totalChunks(func)

    thisChunk = CommandArgument(
        "--this-chunk", dest="thisChunk", type=int, help="Which chunk to run between 1 and --total-chunks."
    )
    func = thisChunk(func)

    oop = CommandArgument("--enable-oop", action="store_true", dest="oop", help="Run tests in out-of-process mode.")
    func = oop(func)

    path = CommandArgument(
        "test_file",
        default=None,
        nargs="?",
        metavar="TEST",
        help="Test to run. Can be specified as a single file, a "
        "directory, or omitted. If omitted, the entire test suite is "
        "executed.",
    )
    func = path(func)

    return func
开发者ID:msliu,项目名称:gecko-dev,代码行数:45,代码来源:mach_commands.py


示例7: ReftestCommand

def ReftestCommand(func):
    """Decorator that adds shared command arguments to reftest commands."""

    debugger = CommandArgument("--debugger", metavar="DEBUGGER", help=DEBUGGER_HELP)
    func = debugger(func)

    flter = CommandArgument(
        "--filter",
        metavar="REGEX",
        help="A JS regular expression to match test URLs against, to select " "a subset of tests to run.",
    )
    func = flter(func)

    path = CommandArgument(
        "test_file",
        nargs="?",
        metavar="MANIFEST",
        help="Reftest manifest file, or a directory in which to select "
        "reftest.list. If omitted, the entire test suite is executed.",
    )
    func = path(func)

    return func
开发者ID:hibrium,项目名称:Pale-Moon,代码行数:23,代码来源:mach_commands.py



注:本文中的mozpack.path函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python copier.FileCopier类代码示例发布时间:2022-05-27
下一篇:
Python moznetwork.get_ip函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap