Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 """
0003 Do not write choice values to .config if the dependency is unmet.
0004 
0005 "# CONFIG_... is not set" should not be written into the .config file
0006 for symbols with unmet dependency.
0007 
0008 This was not working correctly for choice values because choice needs
0009 a bit different symbol computation.
0010 
0011 This checks that no unneeded "# COFIG_... is not set" is contained in
0012 the .config file.
0013 
0014 Related Linux commit: cb67ab2cd2b8abd9650292c986c79901e3073a59
0015 """
0016 
0017 
0018 def test(conf):
0019     assert conf.oldaskconfig('config', 'n') == 0
0020     assert conf.config_matches('expected_config')