servo: Merge #15181 - Make test-wpt-failure smoketest work again (from jdm:wptfail); r=SimonSapin

Having this testsuite working would have avoided the issue caused by #15064. This will need to wait until after #15164 is merged, because it picks up the failure that currently exists on master.

Source-Repo: https://github.com/servo/servo
Source-Revision: 39b4f19ebb5f9335372d4617cc345707b66eea02
This commit is contained in:
Josh Matthews 2017-01-24 13:16:50 -08:00
parent d8119d189f
commit 0fbd723e7f

View File

@ -411,16 +411,13 @@ class MachCommands(CommandBase):
@Command('test-wpt-failure',
description='Run the tests harness that verifies that the test failures are reported correctly',
category='testing')
def test_wpt_failure(self):
category='testing',
parser=create_parser_wpt)
def test_wpt_failure(self, **kwargs):
self.ensure_bootstrapped()
return not call([
"bash",
path.join("tests", "wpt", "run.sh"),
"--no-pause-after-test",
"--include",
"infrastructure/failing-test.html"
], env=self.build_env())
kwargs["pause_after_test"] = False
kwargs["include"] = ["infrastructure/failing-test.html"]
return not self._test_wpt(**kwargs)
@Command('test-wpt',
description='Run the regular web platform test suite',