コード例 #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
コード例 #2
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")
    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
ファイル: updatecommandline.py プロジェクト: zeta1999/servo
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()