Example #1
0
def main():
    parser = create_parser()
    args = parser.parse_args()

    venv = virtualenv.Virtualenv(os.path.join(wpt_root, "_venv"))
    venv.start()

    kwargs = setup_wptrunner(venv, args.product, args.tests, args.wptrunner_args, prompt=args.prompt)
    wptrunner.start(**kwargs)
Example #2
0
def main():
    parser = create_parser()
    args = parser.parse_args()

    venv = virtualenv.Virtualenv(os.path.join(wpt_root, "_venv_%s") % platform.uname()[0])
    venv.start()
    venv.install_requirements(os.path.join(wpt_root, "tools", "wptrunner", "requirements.txt"))
    venv.install("requests")

    kwargs = setup_wptrunner(venv, args.product, args.tests, args.wptrunner_args, prompt=args.prompt)
    from wptrunner import wptrunner
    wptrunner.start(**kwargs)
def main():
    try:
        parser = create_parser()
        args = parser.parse_args()

        venv = virtualenv.Virtualenv(os.path.join(wpt_root, "_venv_%s") % platform.uname()[0])
        venv.start()
        venv.install_requirements(os.path.join(wpt_root, "tools", "wptrunner", "requirements.txt"))
        venv.install("requests")

        kwargs = setup_wptrunner(venv, args.product, args.tests, args.wptrunner_args, prompt=args.prompt)
        from wptrunner import wptrunner
        wptrunner.start(**kwargs)
    except WptrunError as e:
        exit(e.message)
    def run(self, logger, **kwargs):
        from wptrunner import wptrunner
        from mozbuild.base import BinaryNotFoundException

        if kwargs["manifest_update"] is not False:
            self.update_manifest(logger)
        kwargs["manifest_update"] = False

        if kwargs["product"] in ["firefox", None]:
            try:
                kwargs = self.setup.kwargs_firefox(kwargs)
            except BinaryNotFoundException as e:
                logger.error(e)
                logger.info(e.help())
                return 1
        elif kwargs["product"] == "firefox_android":
            from wptrunner import wptcommandline
            kwargs = wptcommandline.check_args(
                self.setup.kwargs_common(kwargs))
        elif kwargs["product"] in ("chrome", "edge", "servo"):
            kwargs = self.setup.kwargs_wptrun(kwargs)
        else:
            raise ValueError("Unknown product %s" % kwargs["product"])
        result = wptrunner.start(**kwargs)
        return int(result)
 def run(self, **kwargs):
     from wptrunner import wptrunner
     if kwargs["product"] in ["firefox", None]:
         kwargs = self.setup.kwargs_firefox(kwargs)
     elif kwargs["product"] in ("chrome", "edge", "servo"):
         kwargs = self.setup.kwargs_wptrun(kwargs)
     else:
         raise ValueError("Unknown product %s" % kwargs["product"])
     logger = wptrunner.setup_logging(kwargs, {self.setup.default_log_type: sys.stdout})
     result = wptrunner.start(**kwargs)
     return int(not result)
Example #6
0
 def run(self, logger, **kwargs):
     from wptrunner import wptrunner
     if kwargs["product"] in ["firefox", None]:
         kwargs = self.setup.kwargs_firefox(kwargs)
     elif kwargs["product"] == "fennec":
         from wptrunner import wptcommandline
         kwargs = wptcommandline.check_args(
             self.setup.kwargs_common(kwargs))
     elif kwargs["product"] in ("chrome", "edge", "servo"):
         kwargs = self.setup.kwargs_wptrun(kwargs)
     else:
         raise ValueError("Unknown product %s" % kwargs["product"])
     result = wptrunner.start(**kwargs)
     return int(not result)
    def run(self, logger, **kwargs):
        from wptrunner import wptrunner

        if kwargs["manifest_update"] is not False:
            self.update_manifest(logger)
        kwargs["manifest_update"] = False

        if kwargs["product"] in ["firefox", None]:
            kwargs = self.setup.kwargs_firefox(kwargs)
        elif kwargs["product"] == "firefox_android":
            from wptrunner import wptcommandline
            kwargs = wptcommandline.check_args(self.setup.kwargs_common(kwargs))
        elif kwargs["product"] in ("chrome", "edge", "servo"):
            kwargs = self.setup.kwargs_wptrun(kwargs)
        else:
            raise ValueError("Unknown product %s" % kwargs["product"])
        result = wptrunner.start(**kwargs)
        return int(result)
Example #8
0
File: run.py Project: rrp372/wpt
def run_single(venv, **kwargs):
    from wptrunner import wptrunner
    return wptrunner.start(**kwargs)
Example #9
0
def run_single(venv, **kwargs):
    from wptrunner import wptrunner
    return wptrunner.start(**kwargs)