Skip to content

Stabilization: Change scope of grub2_bootloader_argument templated tests - #15037

Merged
vojtapolasek merged 1 commit into
ComplianceAsCode:stabilizationfrom
jan-cerny:grub2_bootloader_argument_test_stabilization
Aug 25, 2026
Merged

Stabilization: Change scope of grub2_bootloader_argument templated tests#15037
vojtapolasek merged 1 commit into
ComplianceAsCode:stabilizationfrom
jan-cerny:grub2_bootloader_argument_test_stabilization

Conversation

@jan-cerny

Copy link
Copy Markdown
Member

Some test scenarios test correct handling of values of bootloader arguments. But, not all arguments have values, some arguments are value-less, for example nousb. For the value-less arguments it doesn't make sense to test the correct handling of values. Some tests that currently attempt to do this are broken.

We will fix it by disabling the test scenarios.
We will use the well-known "trick" of setting the # platform header to Not Applicable if the bootloader argument isn't supposed to have any value. These are rules where the template isn't given the arg_value or arg_variable parameter.

Fixes failing templated test scenario wrong_value_entries.fail.sh in rule grub2_nousb_argument.

This PR is a backport of the PR #15026 to the stabilization branch.

@jan-cerny jan-cerny added this to the 0.1.82 milestone Aug 24, 2026
@Mab879 Mab879 self-assigned this Aug 24, 2026
Some test scenarios test correct handling of *values* of bootloader
arguments. But, not all arguments have values, some arguments are
value-less, for example `nousb`. For the value-less arguments it
doesn't make sense to test the correct handling of values. Some
tests that currently attempt to do this are broken.

We will fix it by disabling the test scenarios.
We will use the well-known "trick" of setting the `# platform`
header to `Not Applicable` if the bootloader argument isn't supposed
to have any value. These are rules where the template isn't given
the `arg_value` or `arg_variable` parameter.

Fixes failing templated test scenario `wrong_value_entries.fail.sh`
in rule `grub2_nousb_argument`.
@jan-cerny
jan-cerny force-pushed the grub2_bootloader_argument_test_stabilization branch from 42c482c to 038982b Compare August 25, 2026 06:28
@jan-cerny

Copy link
Copy Markdown
Member Author

I have removed the empty line.

@vojtapolasek vojtapolasek self-assigned this Aug 25, 2026
@vojtapolasek vojtapolasek added the backported-into-stabilization PRs which were cherry-picked during stabilization process. label Aug 25, 2026

@vojtapolasek vojtapolasek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vojtapolasek
vojtapolasek merged commit d48b9c1 into ComplianceAsCode:stabilization Aug 25, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported-into-stabilization PRs which were cherry-picked during stabilization process.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants