Skip to content

Commit

Permalink
fixed testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Apr 30, 2024
1 parent bc21872 commit 38d3743
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/BootStorage.rb
Expand Up @@ -270,7 +270,7 @@ def propose_resume
end

# try to use label or udev id for device name... FATE #302219
Bootloader::UdevMapping.to_mountby_device(largest_swap_name)
::Bootloader::UdevMapping.to_mountby_device(largest_swap_name)
end

private
Expand Down
1 change: 1 addition & 0 deletions test/grub2_widgets_test.rb
Expand Up @@ -231,6 +231,7 @@ def stub_widget_value(id, value)

it "stores text as kernel command line option" do
expect(subject).to receive(:value).and_return("showopts quiet")
expect(subject).to receive(:enabled?).and_return(true)
subject.store

expect(bootloader.grub_default.kernel_params.serialize).to eq "showopts quiet"
Expand Down
1 change: 1 addition & 0 deletions test/systemdboot_widgets_test.rb
Expand Up @@ -133,6 +133,7 @@ def stub_widget_value(id, value)

it "stores text as kernel command line option" do
expect(subject).to receive(:value).and_return("showopts quiet")
expect(subject).to receive(:enabled?).and_return(true)
subject.store

expect(bootloader.kernel_params.serialize).to eq "showopts quiet"
Expand Down

0 comments on commit 38d3743

Please sign in to comment.