Merge "Pythonified sanity_check.all_tests_passed"

This commit is contained in:
Jenkins 2014-10-07 23:34:02 +00:00 committed by Gerrit Code Review
commit baa572ab8d

View File

@ -104,11 +104,7 @@ def enable_tests_from_config():
def all_tests_passed():
res = True
for opt in OPTS:
if cfg.CONF.get(opt.name):
res &= opt.callback()
return res
return all(opt.callback() for opt in OPTS if cfg.CONF.get(opt.name))
def main():