author Kartikaya Gupta <kgupta@mozilla.com>
Fri, 06 Apr 2018 11:58:43 -0400
changeset 468257 19a80805c67f74bc06d89440dd7ace2779f1e577
parent 427391 91cfa54b94d2d10a48a469696a914e7e02406725
child 479391 266c6cfb96a76daaa7bd2e3574f7d1d8ae60c4a6
permissions -rw-r--r--
Bug 1344350 - Mark reftests failing with webrender on windows. r=jrmuizel Many of these could probably be fuzzed but in the interests of getting the reftest suite turned on sooner I'm doing a blanket fails-if. This covers all the reftests where there is more fuzz with webrender on windows than any of existing annotations account for. In some cases the fuzz is only a few pixels more than the equivalent Linux fuzz already annotated, but I'll clean that up in a future bug. MozReview-Commit-ID: IaKarbnL46d

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

import sys

def create_parser_wpt():
    from wptrunner import wptcommandline
    return wptcommandline.create_parser(["firefox", "chrome", "edge", "servo"])

class WebPlatformTestsRunner(object):
    """Run web platform tests."""

    def __init__(self, setup):
        self.setup = setup

    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)
            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)