Skip to content

Commit

Permalink
main_ltp: Workaround broken grub menu items on sle-micro
Browse files Browse the repository at this point in the history
transactional needs to first run install_ltp due broken grub menu
counting detection in add_custom_grub_entries():

Test died: Unexpected number of grub entries: 5, expected: 3 at lib/bootloader_setup.pm line 166.

Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Jan 27, 2025
1 parent 9722bd1 commit ba23167
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions lib/main_ltp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,22 @@ sub load_kernel_tests {
if (get_var('FLAVOR', '') =~ /Incidents-Kernel/) {
loadtest_kernel 'update_kernel';
}
if (is_transactional && (get_var('FLAVOR', '') =~ /-Staging|-Updates/)) {
if (get_var('KGRAFT')) {
loadtest_kernel 'update_kernel';
} else {
loadtest 'transactional/install_updates';
}

# transactional needs to first run install_ltp due broken grub menu
# counting detection in add_custom_grub_entries():
# Test died: Unexpected number of grub entries: 5, expected: 3 at lib/bootloader_setup.pm line 166.
my $needs_update = is_transactional && (get_var('FLAVOR', '') =~ /-Staging|-Updates/);

if ($needs_update && get_var('KGRAFT')) {
loadtest_kernel 'update_kernel';
}

loadtest_kernel 'install_ltp';

if ($needs_update && !get_var('KGRAFT')) {
loadtest 'transactional/install_updates';
}

if (get_var('LIBC_LIVEPATCH')) {
die 'LTP_COMMAND_FILE and LIBC_LIVEPATCH are mutually exclusive'
if get_var('LTP_COMMAND_FILE');
Expand Down

0 comments on commit ba23167

Please sign in to comment.