OR needs OptCheck.check() return values
[kconfig-hardened-check.git] / 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)