From db104b738e1ff6b69c3983be6f50f8d7a048b182 Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 3 Apr 2015 23:27:29 +0100 Subject: [PATCH] Return correct exit codes. --- tests/wpt/run.py | 4 ++-- 1 file 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) -