10c874100SMasahiro Yamada# SPDX-License-Identifier: GPL-2.0 2930c429aSMasahiro Yamada""" 3930c429aSMasahiro YamadaDo not write choice values to .config if the dependency is unmet. 4930c429aSMasahiro Yamada 5930c429aSMasahiro Yamada"# CONFIG_... is not set" should not be written into the .config file 6930c429aSMasahiro Yamadafor symbols with unmet dependency. 7930c429aSMasahiro Yamada 8930c429aSMasahiro YamadaThis was not working correctly for choice values because choice needs 9930c429aSMasahiro Yamadaa bit different symbol computation. 10930c429aSMasahiro Yamada 11930c429aSMasahiro YamadaThis checks that no unneeded "# COFIG_... is not set" is contained in 12930c429aSMasahiro Yamadathe .config file. 13930c429aSMasahiro Yamada 14930c429aSMasahiro YamadaRelated Linux commit: cb67ab2cd2b8abd9650292c986c79901e3073a59 15930c429aSMasahiro Yamada""" 16930c429aSMasahiro Yamada 17930c429aSMasahiro Yamada 18930c429aSMasahiro Yamadadef test(conf): 19930c429aSMasahiro Yamada assert conf.oldaskconfig('config', 'n') == 0 20930c429aSMasahiro Yamada assert conf.config_matches('expected_config') 21