]> git.sur5r.net Git - u-boot/blob - scripts/kconfig/tests/no_write_if_dep_unmet/__init__.py
kconfig: re-sync with Linux 4.17-rc4
[u-boot] / scripts / kconfig / tests / no_write_if_dep_unmet / __init__.py
1 """
2 Do not write choice values to .config if the dependency is unmet.
3
4 "# CONFIG_... is not set" should not be written into the .config file
5 for symbols with unmet dependency.
6
7 This was not working correctly for choice values because choice needs
8 a bit different symbol computation.
9
10 This checks that no unneeded "# COFIG_... is not set" is contained in
11 the .config file.
12
13 Related Linux commit: cb67ab2cd2b8abd9650292c986c79901e3073a59
14 """
15
16
17 def test(conf):
18     assert conf.oldaskconfig('config', 'n') == 0
19     assert conf.config_matches('expected_config')