scripts/kconfig/tests/new_choice_with_dep/__init__.py

Source file repositories/reference/linux-study-clean/scripts/kconfig/tests/new_choice_with_dep/__init__.py

File Facts

System
Linux kernel
Corpus path
scripts/kconfig/tests/new_choice_with_dep/__init__.py
Extension
.py
Size
445 bytes
Lines
16
Domain
Support Tooling And Documentation
Bucket
scripts
Inferred role
Support Tooling And Documentation: scripts
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0
"""
Ask new choice values when they become visible.

If new choice values are added with new dependency, and they become
visible during user configuration, oldconfig should recognize them
as (NEW), and ask the user for choice.

Related Linux commit: 5d09598d488f081e3be23f885ed65cbbe2d073b5
"""


def test(conf):
    assert conf.oldconfig('config', 'y') == 0
    assert conf.stdout_contains('expected_stdout')

Annotation

Implementation Notes