Skip to content

Commit

Permalink
Adapted unit test and made the tested method public
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Aug 24, 2021
1 parent 8081ee5 commit f2a8aff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/lib/installation/clients/umount_finish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def close_scr_on_target
WFM.SCRClose(Installation.scr_handle)
end

public

# For btrfs filesystems that should be read-only, set the root subvolume
# to read-only and change the /etc/fstab entry accordingly.
#
Expand All @@ -145,6 +147,8 @@ def set_btrfs_defaults_as_ro
ro_btrfs_filesystems.each { |f| default_subvolume_as_ro(f) }
end

protected

# [String] Name used by btrfs tools to name the filesystem tree.
BTRFS_FS_TREE = "(FS_TREE)".freeze

Expand Down
2 changes: 1 addition & 1 deletion test/lib/clients/umount_finish_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative "../../test_helper"
require "installation/clients/umount_finish"

describe Yast::UmountFinishClient do
describe Installation::Clients::UmountFinishClient do
before do
Y2Storage::StorageManager.create_test_instance
end
Expand Down

0 comments on commit f2a8aff

Please sign in to comment.