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:
295a293
)
backport: Fix the bug in OptCheck.check() introduced in cb779a71bf57d95b
v0.6.1-fixes
v0.6.1
author
Alexander Popov
<alex.popov@linux.com>
Mon, 6 Mar 2023 08:13:07 +0000
(11:13 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Mon, 6 Mar 2023 08:13:07 +0000
(11:13 +0300)
Use 'elif' instead of 'if' to avoid wrong self.result when
self.state is 'off'.
We need unit-tests for the engine checking the correctness: #79
kconfig_hardened_check/__init__.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index a3a3293797e2c4ba0bba5906e5c7dd2dcf613a41..5bc0d375d5df8de038e4e50a8e0b8ae26d7c0b37 100644
(file)
--- a/
kconfig_hardened_check/__init__.py
+++ b/
kconfig_hardened_check/__init__.py
@@
-96,7
+96,7
@@
class OptCheck:
if self.expected == 'is not off':
if self.state == 'off':
self.result = 'FAIL: is off'
- if self.state == '0':
+
el
if self.state == '0':
self.result = 'FAIL: is off, "0"'
elif self.state is None:
self.result = 'FAIL: is off, not found'