__init__.py 491 B

1234567891011121314
  1. # SPDX-License-Identifier: GPL-2.0
  2. """
  3. Test that transitional symbols with invalid properties are rejected.
  4. Transitional symbols can only have help sections. Any other properties
  5. (default, select, depends, etc.) should cause a parser error.
  6. """
  7. def test(conf):
  8. # This should fail with exit code 1 due to invalid transitional symbol
  9. assert conf.olddefconfig() == 1
  10. # Check that the error message is about transitional symbols
  11. assert conf.stderr_contains('expected_stderr')