Permalink
Browse files

Update specs to not break other virts when looking for OpenVZ

  • Loading branch information...
btm committed Mar 29, 2012
1 parent 4f1280d commit 2a78292dab4020975640142537a5566cbc90607f
Showing with 2 additions and 1 deletion.
  1. +2 −1 spec/ohai/plugins/linux/virtualization_spec.rb
@@ -32,7 +32,8 @@
File.stub!(:exists?).with("/proc/cpuinfo").and_return(false)
File.stub!(:exists?).with("/usr/sbin/dmidecode").and_return(false)
File.stub!(:exists?).with("/proc/self/status").and_return(false)
- File.stub!(:exists?).with("/proc/user_beancounters").and_return(false)
+ File.stub!(:exists?).with("/proc/bc/0").and_return(false)
+ File.stub!(:exists?).with("/proc/vz").and_return(false)
end
describe "when we are checking for xen" do

0 comments on commit 2a78292

Please sign in to comment.