本文整理汇总了Python中webkitpy.tool.multicommandtool.AbstractDeclarativeCommand类的典型用法代码示例。如果您正苦于以下问题:Python AbstractDeclarativeCommand类的具体用法?Python AbstractDeclarativeCommand怎么用?Python AbstractDeclarativeCommand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AbstractDeclarativeCommand类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
options = [
make_option("--httpd-port", action="store", type="int", default=8127, help="Port to use for the HTTP server"),
make_option("--no-show-results", action="store_false", default=True, dest="show_results",
help="Don't launch a browser with the rebaseline server"),
]
AbstractDeclarativeCommand.__init__(self, options=options)
示例2: __init__
def __init__(self):
options = [
make_option("--all", action="store_true",
help="Show all bugs regardless of who is on CC (it might take a while)"),
make_option("--include-cq-denied", action="store_true",
help="By default, r? patches with cq- are omitted unless this option is set"),
make_option("--cc-email",
help="Specifies the email on the CC field (defaults to your bugzilla login email)"),
]
AbstractDeclarativeCommand.__init__(self, options=options)
示例3: __init__
def __init__(self):
options = [
optparse.make_option('--upload', action='store_true',
help='upload the changed FlakyTest file for review'),
optparse.make_option('--reviewers', action='store',
help='comma-separated list of reviewers, defaults to blink gardeners'),
]
AbstractDeclarativeCommand.__init__(self, options=options)
# This is sorta silly, but allows for unit testing:
self.expectations_factory = BotTestExpectationsFactory
示例4: __init__
def __init__(self):
options = [
make_option("--committer-minimum", action="store", dest="committer_minimum", type="int", default=10, help="Specify minimum patch count for Committer nominations."),
make_option("--reviewer-minimum", action="store", dest="reviewer_minimum", type="int", default=80, help="Specify minimum patch count for Reviewer nominations."),
make_option("--max-commit-age", action="store", dest="max_commit_age", type="int", default=9, help="Specify max commit age to consider for nominations (in months)."),
make_option("--show-commits", action="store_true", dest="show_commits", default=False, help="Show commit history with nomination suggestions."),
]
AbstractDeclarativeCommand.__init__(self, options=options)
# FIXME: This should probably be on the tool somewhere.
self._committer_list = CommitterList()
示例5: __init__
def __init__(self):
options = [
make_option('--all', action='store_true', default=False,
help='display the expectations for *all* tests'),
make_option('-x', '--exclude-keyword', action='append', default=[],
help='limit to tests not matching the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'),
make_option('-i', '--include-keyword', action='append', default=[],
help='limit to tests with the given keyword (for example, "skip", "slow", or "crash". May specify multiple times'),
make_option('--csv', action='store_true', default=False,
help='Print a CSV-style report that includes the port name, modifiers, tests, and expectations'),
make_option('-f', '--full', action='store_true', default=False,
help='Print a full test_expectations.txt-style line for every match'),
] + port_options(platform='port/platform to use. Use glob-style wildcards for multiple ports (implies --csv)')
AbstractDeclarativeCommand.__init__(self, options=options)
self._expectation_models = {}
示例6: __init__
def __init__(self):
options = [
make_option("--bugs", action="store_true", dest="bugs", help="Output bug links instead of patch links"),
]
AbstractDeclarativeCommand.__init__(self, options=options)
示例7: __init__
def __init__(self):
options = [
steps.Options.git_commit,
]
AbstractDeclarativeCommand.__init__(self, options=options)
示例8: __init__
def __init__(self):
self._sequence = StepSequence(self.steps)
AbstractDeclarativeCommand.__init__(self, self._sequence.options())
示例9: __init__
def __init__(self):
AbstractDeclarativeCommand.__init__(self)
self._re_committed = re.compile(self.commited_pattern)
self._re_rollout = re.compile(self.rollout_pattern)
self._omahaproxy = OmahaProxy()
示例10: __init__
def __init__(self):
options = [
make_option("--httpd-port", action="store", type="int", default=8127, help="Port to use for the the rebaseline HTTP server"),
]
AbstractDeclarativeCommand.__init__(self, options=options)
示例11: __init__
def __init__(self):
options = [
steps.Options.changelog_count,
]
AbstractDeclarativeCommand.__init__(self, options=options)
示例12: __init__
def __init__(self):
options = [make_option("--irc-password", default=None, help="Specify IRC password to use.")]
AbstractDeclarativeCommand.__init__(self, options)
示例13: __init__
def __init__(self):
options = [
optparse.make_option('--suffixes', default=','.join(_baseline_suffix_list), action='store',
help='file types to rebaseline')]
AbstractDeclarativeCommand.__init__(self, options=options)
self._baseline_suffix_list = _baseline_suffix_list
示例14: __init__
def __init__(self):
AbstractDeclarativeCommand.__init__(self)
# This is sorta silly, but allows for unit testing:
self.expectations_factory = BotTestExpectationsFactory