Fix the bug in OptCheck.check() introduced in cb779a71bf57d95b
authorAlexander Popov <alex.popov@linux.com>
Sun, 5 Mar 2023 20:56:45 +0000 (23:56 +0300)
committerAlexander Popov <alex.popov@linux.com>
Mon, 6 Mar 2023 08:08:00 +0000 (11:08 +0300)
commitd006bfa48e87600e70aae1a696ede3182f6c1cbd
treed2b554d8de5d9bce62719cf0558d3218c6d4ea47
parent9d0eb7eeae621bc455bd7af8ba1a9d9913d7a908
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/engine.py