File Index
Files and directories
Sign in
FILE

__init__.py

File preview with syntax highlighting.

linux-6.19.14/scripts/kconfig/tests/new_choice_with_dep/__init__.py PYTHON
 1# SPDX-License-Identifier: GPL-2.0
 2"""
 3Ask new choice values when they become visible.
 4
 5If new choice values are added with new dependency, and they become
 6visible during user configuration, oldconfig should recognize them
 7as (NEW), and ask the user for choice.
 8
 9Related Linux commit: 5d09598d488f081e3be23f885ed65cbbe2d073b5
10"""
11
12
13def test(conf):
14    assert conf.oldconfig('config', 'y') == 0
15    assert conf.stdout_contains('expected_stdout')
~/ Read-only file preview.