GNU Linux-libre 4.19.264-gnu1
[releases.git] / scripts / kconfig / tests / choice_value_with_m_dep / __init__.py
1 """
2 Hide tristate choice values with mod dependency in y choice.
3
4 If tristate choice values depend on symbols set to 'm', they should be
5 hidden when the choice containing them is changed from 'm' to 'y'
6 (i.e. exclusive choice).
7
8 Related Linux commit: fa64e5f6a35efd5e77d639125d973077ca506074
9 """
10
11
12 def test(conf):
13     assert conf.oldaskconfig('config', 'y') == 0
14     assert conf.config_contains('expected_config')
15     assert conf.stdout_contains('expected_stdout')