aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Graham <james@hoppipolla.co.uk>2015-04-03 23:27:29 +0100
committerJames Graham <james@hoppipolla.co.uk>2015-04-03 23:51:49 +0100
commitdb104b738e1ff6b69c3983be6f50f8d7a048b182 (patch)
tree2dd115b74a4723b0c06329cd1d1bf305d63a0334
parente31744e48ee5eecf5dd9412d0b7f7eb7d6488f55 (diff)
downloadservo-db104b738e1ff6b69c3983be6f50f8d7a048b182.tar.gz
servo-db104b738e1ff6b69c3983be6f50f8d7a048b182.zip
Return correct exit codes.
-rw-r--r--tests/wpt/run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wpt/run.py b/tests/wpt/run.py
index ee83f977a8a..897cbf990be 100644
--- a/tests/wpt/run.py
+++ b/tests/wpt/run.py
@@ -25,7 +25,8 @@ def run_tests(paths=None, **kwargs):
paths = {}
set_defaults(paths, kwargs)
wptrunner.setup_logging(kwargs, {"mach": sys.stdout})
- return wptrunner.run_tests(**kwargs)
+ success = wptrunner.run_tests(**kwargs)
+ return 0 if success else 1
def set_defaults(paths, kwargs):
if kwargs["product"] is None:
@@ -52,4 +53,3 @@ def main(paths=None):
parser = wptcommandline.create_parser()
kwargs = vars(parser.parse_args())
return run_tests(paths, **kwargs)
-