OR needs OptCheck.check() return values
authorAlexander Popov <alex.popov@linux.com>
Tue, 24 Jul 2018 20:33:26 +0000 (23:33 +0300)
committerAlexander Popov <alex.popov@linux.com>
Tue, 24 Jul 2018 20:33:26 +0000 (23:33 +0300)
kconfig-hardened-check.py

index 89b343ef3662ad1391f9b7984eec7acdf45b509a..d8f844705bcfa7d8290044d6b8225ffd9eb09af2 100755 (executable)
@@ -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)