Fix incorrect return code for 'update-wpt' mach command

`mach update-wpt` should return 1 if it exits in an unclean state
This commit is contained in:
Corey Farwell 2016-01-02 14:03:13 -08:00
parent c0835ec336
commit f87d2c1df7

View file

@ -23,7 +23,7 @@ def update_tests(**kwargs):
logger = update.setup_logging(kwargs, {"mach": sys.stdout}) logger = update.setup_logging(kwargs, {"mach": sys.stdout})
rv = update.run_update(logger, **kwargs) rv = update.run_update(logger, **kwargs)
return 0 if rv is update.exit_unclean else 1 return 1 if rv is update.exit_unclean else 0
def set_defaults(kwargs): def set_defaults(kwargs):