Merge pull request #10713 from renatoaguiar/fix-void-nfs

Fix NFS capability detection on Void Linux
This commit is contained in:
Chris Roberts 2019-03-20 15:48:46 -07:00 committed by GitHub
commit 2d5091a985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)