Merge pull request #10713 from renatoaguiar/fix-void-nfs
Fix NFS capability detection on Void Linux
This commit is contained in:
commit
2d5091a985
|
@ -15,7 +15,7 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
def self.nfs_installed(env)
|
||||
result = Vagrant::Util::Subprocess.execute("/usr/bin/xbps-query nfs-utils")
|
||||
result = Vagrant::Util::Subprocess.execute("/usr/bin/xbps-query", "nfs-utils")
|
||||
result.exit_code == 0
|
||||
end
|
||||
end
|
||||
|
|
|
@ -39,7 +39,7 @@ describe VagrantPlugins::HostVoid::Cap::NFS do
|
|||
let(:result) { Vagrant::Util::Subprocess::Result.new(exit_code, "", "") }
|
||||
|
||||
before { allow(Vagrant::Util::Subprocess).to receive(:execute).
|
||||
with(/xbps-query nfs-utils/).and_return(result) }
|
||||
with("/usr/bin/xbps-query", "nfs-utils").and_return(result) }
|
||||
|
||||
it "should provide nfs_installed capability" do
|
||||
expect(caps.get(:nfs_installed)).to eq(described_class)
|
||||
|
|
Loading…
Reference in New Issue