projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbfddf6
)
OR needs OptCheck.check() return values
author
Alexander Popov
<alex.popov@linux.com>
Tue, 24 Jul 2018 20:33:26 +0000
(23:33 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Tue, 24 Jul 2018 20:33:26 +0000
(23:33 +0300)
kconfig-hardened-check.py
patch
|
blob
|
history
diff --git
a/kconfig-hardened-check.py
b/kconfig-hardened-check.py
index 89b343ef3662ad1391f9b7984eec7acdf45b509a..d8f844705bcfa7d8290044d6b8225ffd9eb09af2 100755
(executable)
--- 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)