示例#1
0
def create_parser():
    from wptrunner import wptcommandline

    parser = wptcommandline.create_parser_update()
    parser.add_argument("--upstream", action="store_true",
                        help="Push local changes to upstream repository")
    parser.add_argument("--token-file", action="store", type=wptcommandline.abs_path,
                        help="Path to file containing github token")
    parser.add_argument("--token", action="store", help="GitHub token to use")
    return parser
def create_parser():
    from wptrunner import wptcommandline

    parser = wptcommandline.create_parser_update()
    parser.add_argument("--upstream", dest="upstream", action="store_true", default=None,
                        help="Push local changes to upstream repository even when not syncing")
    parser.add_argument("--no-upstream", dest="upstream", action="store_false", default=None,
                        help="Dont't push local changes to upstream repository when syncing")
    parser.add_argument("--token-file", action="store", type=wptcommandline.abs_path,
                        help="Path to file containing github token")
    parser.add_argument("--token", action="store", help="GitHub token to use")
    return parser
示例#3
0
def create_parser():
    from wptrunner import wptcommandline

    parser = wptcommandline.create_parser_update()
    parser.add_argument("--upstream",
                        action="store_true",
                        help="Push local changes to upstream repository")
    parser.add_argument("--token-file",
                        action="store",
                        type=wptcommandline.abs_path,
                        help="Path to file containing github token")
    parser.add_argument("--token", action="store", help="GitHub token to use")
    return parser
示例#4
0
def create_parser():
    from wptrunner import wptcommandline

    parser = wptcommandline.create_parser_update()
    parser.add_argument("--upstream", dest="upstream", action="store_true", default=None,
                        help="Push local changes to upstream repository even when not syncing")
    parser.add_argument("--no-upstream", dest="upstream", action="store_false", default=None,
                        help="Dont't push local changes to upstream repository when syncing")
    parser.add_argument("--token-file", action="store", type=wptcommandline.abs_path,
                        help="Path to file containing github token")
    parser.add_argument("--token", action="store", help="GitHub token to use")
    parser.add_argument('--layout-2020', default=False, action="store_true",
                        help="Use expected results for the 2020 layout engine")
    return parser
示例#5
0
class MachCommands(MachCommandBase):
    @Command("web-platform-tests",
             category="testing",
             conditions=[conditions.is_firefox],
             parser=wptcommandline.create_parser(["firefox"]))
    def run_web_platform_tests(self, **params):
        self.setup()
        wpt_runner = self._spawn(WebPlatformTestsRunner)

        if params["list_test_groups"]:
            return wpt_runner.list_test_groups(**params)
        else:
            return wpt_runner.run_tests(**params)

    @Command("web-platform-tests-update",
             category="testing",
             conditions=[conditions.is_firefox],
             parser=wptcommandline.create_parser_update())
    def update_web_platform_tests(self, **params):
        self.setup()
        self.virtualenv_manager.install_pip_package('html5lib==0.99')
        wpt_updater = self._spawn(WebPlatformTestsUpdater)
        return wpt_updater.run_update(**params)

    def setup(self):
        self._activate_virtualenv()
        self.virtualenv_manager.install_pip_package('py==1.4.14')

    @Command("web-platform-tests-reduce",
             category="testing",
             conditions=[conditions.is_firefox],
             parser=wptcommandline.create_parser_reduce(["firefox"]))
    def unstable_web_platform_tests(self, **params):
        self.setup()
        wpt_reduce = self._spawn(WebPlatformTestsReduce)
        return wpt_reduce.run_reduce(**params)
示例#6
0
文件: update_css.py 项目: xfq/servo
def main():
    parser = wptcommandline.create_parser_update()
    kwargs = vars(parser.parse_args())
    return update_tests(**kwargs)
示例#7
0
文件: update_css.py 项目: 0X1A/servo
def main():
    parser = wptcommandline.create_parser_update()
    kwargs = vars(parser.parse_args())
    return update_tests(**kwargs)
示例#8
0
文件: update.py 项目: Coder206/servo
def create_parser_update():
    from wptrunner import wptcommandline

    return wptcommandline.create_parser_update()