Skip to content

Conversation

@jan-cerny
Copy link
Collaborator

Some test scenarios for rule grub2_pti_argument are failing. The reason is that pti is a substring of options. This is caused by recent change that make the equal sign = optional. This change has been introduced by
#13726. After this change some regular expressions for the pti argument started to match options. We will prevent that by using word bounds marks (\< and \>) in regular expressions. Also, as a part of this commit we will fix coding style.

Rationale

Fixes: #13732

Review Hints:

Run automatus for grub2_pti_argument, grub2_audit_argument and grub2_nousb_argument

@jan-cerny jan-cerny added this to the 0.1.78 milestone Jul 22, 2025
@jan-cerny jan-cerny added the Test Suite Update in Test Suite. label Jul 22, 2025
@vojtapolasek vojtapolasek self-assigned this Jul 22, 2025
Some test scenarios for rule `grub2_pti_argument` are failing.  The
reason is that `pti` is a substring of `options`.  This is caused by
recent change that make the equal sign `=` optional.  This change has
been introduced by
ComplianceAsCode#13726. After this
change some regular expressions for the `pti` argument started to match
`options`. We will prevent that by using word bounds marks (`\<` and
`\>`) in regular expressions. Also, as a part of this commit we will fix
coding style.

Fixes: ComplianceAsCode#13732
@jan-cerny
Copy link
Collaborator Author

I have rebased this PR on the top of the latest upstream master branch.

@vojtapolasek
Copy link
Collaborator

/packit retest-failed

Copy link
Collaborator

@vojtapolasek vojtapolasek left a comment

Choose a reason for hiding this comment

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

LGTM, thank you.

@Mab879 Mab879 merged commit fee9d34 into ComplianceAsCode:master Jul 23, 2025
128 of 129 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Test Suite Update in Test Suite.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some automatus tests for grub2_pti_argument fail

3 participants