scripts/kconfig/tests/auto_submenu/__init__.py

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

File Facts

System
Linux kernel
Corpus path
scripts/kconfig/tests/auto_submenu/__init__.py
Extension
.py
Size
365 bytes
Lines
14
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
"""
Create submenu for symbols that depend on the preceding one.

If a symbols has dependency on the preceding symbol, the menu entry
should become the submenu of the preceding one, and displayed with
deeper indentation.
"""


def test(conf):
    assert conf.oldaskconfig() == 0
    assert conf.stdout_contains('expected_stdout')

Annotation

Implementation Notes