__init__.py 557 B

12345678910111213141516171819
  1. """
  2. Do not write choice values to .config if the dependency is unmet.
  3. "# CONFIG_... is not set" should not be written into the .config file
  4. for symbols with unmet dependency.
  5. This was not working correctly for choice values because choice needs
  6. a bit different symbol computation.
  7. This checks that no unneeded "# COFIG_... is not set" is contained in
  8. the .config file.
  9. Related Linux commit: cb67ab2cd2b8abd9650292c986c79901e3073a59
  10. """
  11. def test(conf):
  12. assert conf.oldaskconfig('config', 'n') == 0
  13. assert conf.config_matches('expected_config')