mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Return correct exit codes.
This commit is contained in:
parent
e31744e48e
commit
db104b738e
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,8 @@ def run_tests(paths=None, **kwargs):
|
||||||
paths = {}
|
paths = {}
|
||||||
set_defaults(paths, kwargs)
|
set_defaults(paths, kwargs)
|
||||||
wptrunner.setup_logging(kwargs, {"mach": sys.stdout})
|
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):
|
def set_defaults(paths, kwargs):
|
||||||
if kwargs["product"] is None:
|
if kwargs["product"] is None:
|
||||||
|
@ -52,4 +53,3 @@ def main(paths=None):
|
||||||
parser = wptcommandline.create_parser()
|
parser = wptcommandline.create_parser()
|
||||||
kwargs = vars(parser.parse_args())
|
kwargs = vars(parser.parse_args())
|
||||||
return run_tests(paths, **kwargs)
|
return run_tests(paths, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue