From 68325b2f17db9dfcf03f878f1b5d93534b337441 Mon Sep 17 00:00:00 2001 From: Assaf Muller Date: Tue, 1 Jul 2014 16:18:35 +0300 Subject: [PATCH] Pythonified sanity_check.all_tests_passed Change-Id: I48986344b7af507e2526d4e8bd1b03277f974972 --- neutron/cmd/sanity_check.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/neutron/cmd/sanity_check.py b/neutron/cmd/sanity_check.py index 1cc7088dc0..b615c59314 100644 --- a/neutron/cmd/sanity_check.py +++ b/neutron/cmd/sanity_check.py @@ -89,11 +89,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():