Skip to content

Commit

Permalink
run with full path
Browse files Browse the repository at this point in the history
  • Loading branch information
wfeldt committed Sep 18, 2019
1 parent f714c6f commit f84d0b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/y2storage/encryption_processes/secure_key.rb
Expand Up @@ -107,7 +107,7 @@ class << self
#
# @return [Boolean]
def available?
device_list = Yast::Execute.locally!("lszcrypt", "--verbose", stdout: :capture)
device_list = Yast::Execute.locally!("/sbin/lszcrypt", "--verbose", stdout: :capture)
device_list&.match?(/\sonline\s/) || false
rescue Error
false
Expand Down
2 changes: 1 addition & 1 deletion test/y2storage/pervasive_demo_test.rb
Expand Up @@ -50,7 +50,7 @@ def lszcrypt_output(file)
.with("zkey", "cryptsetup", "--volumes", anything, stdout: :capture)
.and_return "cryptsetup luksFormat --one two --three\nsecond command"

allow(Yast::Execute).to receive(:locally!).with("lszcrypt", "--verbose", stdout: :capture)
allow(Yast::Execute).to receive(:locally!).with("/sbin/lszcrypt", "--verbose", stdout: :capture)
.and_return lszcrypt
end

Expand Down

0 comments on commit f84d0b0

Please sign in to comment.