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