Add a test that wptrunner fails when it should.

This commit is contained in:
Ms2ger 2014-12-23 10:08:54 +01:00
parent 14df96d772
commit a2521c7e01
3 changed files with 16 additions and 2 deletions

View file

@ -200,6 +200,17 @@ class MachCommands(CommandBase):
def test_tidy(self):
return tidy.scan()
@Command('test-wpt-failure',
description='Run the web platform tests',
category='testing')
def test_wpt_failure(self):
return not subprocess.call([
"bash",
path.join("tests", "wpt", "run.sh"),
"--include",
"infrastructure/failing-test.html"
], env=self.build_env())
@Command('test-wpt',
description='Run the web platform tests',
category='testing')