-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12308 from Xeicker/grub2_slub_debug
Add "is_substring" variable to grub2_bootloader_argument template
- Loading branch information
Showing
5 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
shared/templates/grub2_bootloader_argument/tests/correct_value_substring_left.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
{{% if IS_SUBSTRING != "true" %}} | ||
# platform = Not Applicable | ||
{{% else %}} | ||
# platform = multi_platform_all | ||
{{% endif %}} | ||
{{%- if 'ubuntu' in product %}} | ||
# packages = grub2 | ||
{{%- else %}} | ||
# packages = grub2,grubby | ||
{{%- endif %}} | ||
|
||
{{%- if ARG_VARIABLE %}} | ||
# variables = {{{ ARG_VARIABLE }}}=correct_value | ||
{{%- set ARG_NAME_VALUE= ARG_NAME ~ "=correct_value" %}} | ||
{{%- endif %}} | ||
|
||
{{%- set ARG_NAME_VALUE= ARG_NAME_VALUE ~ "A" %}} | ||
|
||
source common.sh | ||
|
||
{{{ grub2_bootloader_argument_remediation(ARG_NAME, ARG_NAME_VALUE) }}} |
22 changes: 22 additions & 0 deletions
22
shared/templates/grub2_bootloader_argument/tests/correct_value_substring_right.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
{{% if IS_SUBSTRING != "true" %}} | ||
# platform = Not Applicable | ||
{{% else %}} | ||
# platform = multi_platform_all | ||
{{% endif %}} | ||
{{%- if 'ubuntu' in product %}} | ||
# packages = grub2 | ||
{{%- else %}} | ||
# packages = grub2,grubby | ||
{{%- endif %}} | ||
|
||
{{%- if ARG_VARIABLE %}} | ||
# variables = {{{ ARG_VARIABLE }}}=correct_value | ||
{{%- set ARG_NAME_VALUE= ARG_NAME ~ "=correct_value" %}} | ||
{{%- endif %}} | ||
|
||
{{%- set ARG_NAME_VALUE = (ARG_NAME_VALUE | replace("=","=A")) %}} | ||
|
||
source common.sh | ||
|
||
{{{ grub2_bootloader_argument_remediation(ARG_NAME, ARG_NAME_VALUE) }}} |