Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Sep 22, 2020
1 parent 0ed8135 commit 19196a7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/grub_install_test.rb
Expand Up @@ -59,7 +59,7 @@ def expect_grub2_install(target, device: nil, removable: false, no_nvram: false)
stub_efivars(removable: true)

expect(Yast::Execute).to receive(:on_target)
.with([/grub2-install/, anything, "--suse-force-signed", anything, anything, anything, anything])
.with([/grub2-install/, anything, "--suse-force-signed", anything, anything, anything])

subject.execute(secure_boot: true)
end
Expand Down Expand Up @@ -128,14 +128,16 @@ def expect_grub2_install(target, device: nil, removable: false, no_nvram: false)
it "grub2 install asked to not update nvram" do
stub_arch("aarch64")
stub_efivars
expect_grub2_install("arm64-efi", no_nvram: true)
expect_grub2_install("arm64-efi", no_nvram: true, removable: true)
# second run of grub2-install
expect_grub2_install("arm64-efi", no_nvram: false, removable: false)

subject.execute(update_nvram: false)
end

it "passes suse-enable-tpm option when trusted boot is requested" do
stub_arch("x86_64")
stub_efivars
stub_efivars(removable: false)

expect(Yast::Execute).to receive(:on_target) do |arg|
expect(arg).to include("--suse-enable-tpm")
Expand Down

0 comments on commit 19196a7

Please sign in to comment.