Linux-libre 5.3.12-gnu
[librecmc/linux-libre.git] / scripts / kconfig / tests / inter_choice / __init__.py
1 # SPDX-License-Identifier: GPL-2.0
2 """
3 Do not affect user-assigned choice value by another choice.
4
5 Handling of state flags for choices is complecated.  In old days,
6 the defconfig result of a choice could be affected by another choice
7 if those choices interact by 'depends on', 'select', etc.
8
9 Related Linux commit: fbe98bb9ed3dae23e320c6b113e35f129538d14a
10 """
11
12
13 def test(conf):
14     assert conf.defconfig('defconfig') == 0
15     assert conf.config_contains('expected_config')