From: Alexander Popov Date: Tue, 24 Jul 2018 20:33:26 +0000 (+0300) Subject: OR needs OptCheck.check() return values X-Git-Tag: v0.5.2~85^2~5 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=eeeeda442683d08c6daa5cd0a52de4ea34c4fc1f;p=kconfig-hardened-check.git OR needs OptCheck.check() return values --- 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)