From eeeeda442683d08c6daa5cd0a52de4ea34c4fc1f Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 24 Jul 2018 23:33:26 +0300 Subject: [PATCH] OR needs OptCheck.check() return values --- kconfig-hardened-check.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index 89b343e..d8f8447 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -45,6 +45,11 @@ class OptCheck: else: self.result = 'FAIL: "' + self.state + '"' + if self.result.startswith('OK'): + return True, self.result + else: + return False, self.result + def __repr__(self): return '{} = {}'.format(self.name, self.state) -- 2.31.1