From a2521c7e01508b50159d9e216d769df405575e40 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 23 Dec 2014 10:08:54 +0100 Subject: [PATCH] Add a test that wptrunner fails when it should. --- python/servo/testing_commands.py | 11 +++++++++++ tests/wpt/metadata/MANIFEST.json | 5 ++++- tests/wpt/web-platform-tests | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 0024a425cd5..ab1337a9f4f 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -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') diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index d8126c17d96..ba67cabe47f 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -14245,6 +14245,9 @@ { "url": "/http/content_length.html" }, + { + "url": "/infrastructure/failing-test.html" + }, { "url": "/js/builtins/Array.DefineOwnProperty.html" }, @@ -17763,6 +17766,6 @@ "deleted": [], "items": {} }, - "rev": "badfd02aa085e25bd79f18902afbafcc8bc884b5", + "rev": "5bff693a497f200800d6d0dd6e3cc3556cc00bbe", "url_base": "/" } \ No newline at end of file diff --git a/tests/wpt/web-platform-tests b/tests/wpt/web-platform-tests index badfd02aa08..5bff693a497 160000 --- a/tests/wpt/web-platform-tests +++ b/tests/wpt/web-platform-tests @@ -1 +1 @@ -Subproject commit badfd02aa085e25bd79f18902afbafcc8bc884b5 +Subproject commit 5bff693a497f200800d6d0dd6e3cc3556cc00bbe