Skip to content

Commit

Permalink
Merge pull request yast#913 from yast/fix_popup
Browse files Browse the repository at this point in the history
Fix popup
  • Loading branch information
jreidinger authored Feb 18, 2021
2 parents b6e1de3 + e1b1d85 commit dfd4755
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/yast2-installation.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 18 21:34:23 UTC 2021 - Josef Reidinger <[email protected]>

- Adapted unit test to recent changes in Yast::Report (related to
bsc#1179893).
- 4.3.26

-------------------------------------------------------------------
Wed Feb 10 08:01:33 UTC 2021 - Imobach Gonzalez Sosa <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-installation.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

Name: yast2-installation
Version: 4.3.25
Version: 4.3.26
Release: 0
Group: System/YaST
License: GPL-2.0-only
Expand Down
7 changes: 7 additions & 0 deletions test/cio_ignore_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

require "installation/cio_ignore"

Yast.import "Bootloader"

describe ::Installation::CIOIgnore do
before do
allow(Yast::Bootloader).to receive(:kernel_param).with(:common, "rd.zdev")
end

describe "cio_ignore enable/disable" do
it "take AutoYaST cio_ignore setting" do
allow(Yast::Mode).to receive(:autoinst).and_return(true)
Expand All @@ -27,6 +33,7 @@
subject { ::Installation::CIOIgnoreProposal.new }

before(:each) do
allow(Yast::Bootloader).to receive(:kernel_param).with(:common, "rd.zdev")
::Installation::CIOIgnore.instance.reset
end

Expand Down
3 changes: 2 additions & 1 deletion test/image_installation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@
expect(subject.FindImageSet([])).to eq true
end

it "returns false if xml is not valid" do
it "returns false and reports error if xml is not valid" do
allow(Yast::XML).to receive(:XMLToYCPFile).and_raise(Yast::XMLDeserializationError)
expect(Yast::Report).to receive(:Error)

expect(subject.FindImageSet([])).to eq false
end
Expand Down
2 changes: 1 addition & 1 deletion test/inst_update_installer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@

context "when the update cannot be fetched from a user defined repository" do
it "shows an error and returns :next" do
expect(Yast::Popup).to receive(:Error)
expect(Yast::Report).to receive(:Error)
expect(manager).to receive(:add_repository)
.and_raise(::Installation::UpdatesManager::CouldNotFetchUpdateFromRepo)
expect(subject.main).to eq(:next)
Expand Down
2 changes: 2 additions & 0 deletions test/snapshots_finish_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
context "and could not create the snapshot" do
before do
allow(Yast2::FsSnapshot).to receive(:create_post).and_raise(Yast2::SnapshotCreationFailed)
allow(Yast::Report).to receive(:Error)
end

it "returns false" do
Expand All @@ -136,6 +137,7 @@
context "and could not create the snapshot" do
before do
allow(Yast2::FsSnapshot).to receive(:create_single).and_raise(Yast2::SnapshotCreationFailed)
allow(Yast::Report).to receive(:Error)
end

it "returns false" do
Expand Down

0 comments on commit dfd4755

Please sign in to comment.