aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-11-28 10:15:19 -0800
committerManish Goregaokar <manishsmail@gmail.com>2016-11-28 10:15:19 -0800
commit4f021d3c532f1fd5c3cb3ae25cd6e5d58852c3c0 (patch)
tree818e9cda434f38f17a267e9c4f3ba99282e8215e /python/servo/testing_commands.py
parent4b4421c365d37d3a848860511498b893a06b89df (diff)
downloadservo-4f021d3c532f1fd5c3cb3ae25cd6e5d58852c3c0.tar.gz
servo-4f021d3c532f1fd5c3cb3ae25cd6e5d58852c3c0.zip
Run filter-intermittents on buildbot
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r--python/servo/testing_commands.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index dffc38c9646..1db3b4fb1bf 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -68,6 +68,8 @@ def create_parser_wpt():
help="Run under chaos mode in rr until a failure is captured")
parser.add_argument('--pref', default=[], action="append", dest="prefs",
help="Pass preferences to servo")
+ parser.add_argument('--always-succeed', default=False, action="store_true",
+ help="Always yield exit code of zero")
return parser
@@ -399,7 +401,11 @@ class MachCommands(CommandBase):
parser=create_parser_wpt)
def test_wpt(self, **kwargs):
self.ensure_bootstrapped()
- return self.run_test_list_or_dispatch(kwargs["test_list"], "wpt", self._test_wpt, **kwargs)
+ ret = self.run_test_list_or_dispatch(kwargs["test_list"], "wpt", self._test_wpt, **kwargs)
+ if kwargs["always_succeed"]:
+ return 0
+ else:
+ return ret
def _test_wpt(self, **kwargs):
hosts_file_path = path.join(self.context.topdir, 'tests', 'wpt', 'hosts')
@@ -556,7 +562,11 @@ class MachCommands(CommandBase):
parser=create_parser_wpt)
def test_css(self, **kwargs):
self.ensure_bootstrapped()
- return self.run_test_list_or_dispatch(kwargs["test_list"], "css", self._test_css, **kwargs)
+ ret = self.run_test_list_or_dispatch(kwargs["test_list"], "css", self._test_css, **kwargs)
+ if kwargs["always_succeed"]:
+ return 0
+ else:
+ return ret
def _test_css(self, **kwargs):
run_file = path.abspath(path.join("tests", "wpt", "run_css.py"))