From f8e10b5f6a8b5a4d4dac845c316db23d6f67c347 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 1cc7088dc..b615c5931 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(): -- 2.45.2