xref: /linux/scripts/kconfig/tests/err_repeated_inc/__init__.py (revision 5d0d3623303775d750e122a2542d1a26c8573d38)
1# SPDX-License-Identifier: GPL-2.0
2"""
3Detect repeated inclusion error.
4
5If repeated inclusion is detected, it should fail with error message.
6"""
7
8def test(conf):
9    assert conf.oldaskconfig() != 0
10    assert conf.stderr_contains('expected_stderr')
11