backport: Fix the bug in OptCheck.check() introduced in cb779a71bf57d95b v0.6.1-fixes v0.6.1
authorAlexander Popov <alex.popov@linux.com>
Mon, 6 Mar 2023 08:13:07 +0000 (11:13 +0300)
committerAlexander Popov <alex.popov@linux.com>
Mon, 6 Mar 2023 08:13:07 +0000 (11:13 +0300)
commitfa8743fca74f444f29fd33adc8adfa300dfd0656
treef17a46e5b820ef9701b6099395cb8dc47f93c635
parent295a293b0f21b016b1a9ec0eae1f29e52e70cff1
backport: Fix the bug in OptCheck.check() introduced in cb779a71bf57d95b

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