Skip to content

Commit

Permalink
adapted re-probing to storage-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Jun 14, 2017
1 parent 48ef703 commit f6b5e9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/installation/clients/inst_disks_activate.rb
Expand Up @@ -27,6 +27,7 @@
# $Id$
#

require "y2storage"
require "installation/clients/inst_update_installer"

module Yast
Expand All @@ -48,7 +49,6 @@ def main
Yast.import "Label"
Yast.import "Linuxrc"
Yast.import "Popup"
Yast.import "Storage"
Yast.import "Wizard"

# all the arguments
Expand Down Expand Up @@ -159,7 +159,7 @@ def main
)
end

Storage.ReReadTargetMap if @disks_changed
Y2Storage::StorageManager.instance.probe if @disks_changed

Builtins.y2debug("ret=%1", @ret)

Expand Down
5 changes: 4 additions & 1 deletion test/inst_disks_activate_test.rb
Expand Up @@ -16,7 +16,10 @@
allow(Yast::Popup).to receive(:ConfirmAbort).with(:painless).and_return(true)
allow(Yast::Arch).to receive(:s390).and_return(s390)
allow(Yast::GetInstArgs).to receive(:going_back) { going_back }
stub_const("Yast::Storage", double("Yast::Storage", ReReadTargetMap: true))

Y2Storage::StorageManager.create_test_instance
allow(Y2Storage::StorageManager.instance).to receive(:probe)

stub_const("Yast::Packages", double(GetBaseSourceID: 0))
end

Expand Down

0 comments on commit f6b5e9e

Please sign in to comment.