本文整理汇总了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;未经允许,请勿转载。 |
请发表评论