Signed-off-by: Jacob Helwig <ja...@puppetlabs.com> --- This just updates the tests to reflect Todd Zullinger's fix for #6795.
spec/unit/util/xendomains_spec.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/util/xendomains_spec.rb b/spec/unit/util/xendomains_spec.rb index dc7e178..5562d26 100755 --- a/spec/unit/util/xendomains_spec.rb +++ b/spec/unit/util/xendomains_spec.rb @@ -9,13 +9,13 @@ describe Facter::Util::Xendomains do it "should return a list of running Xen Domains on Xen0" do sample_output_file = File.dirname(__FILE__) + '/../data/xendomains' xen0_domains = File.read(sample_output_file) - Facter::Util::Resolution.stubs(:exec).with('/usr/sbin/xm list').returns(xen0_domains) + Facter::Util::Resolution.stubs(:exec).with('/usr/sbin/xm list 2>/dev/null').returns(xen0_domains) Facter::Util::Xendomains.get_domains.should == %{web01,mailserver} end describe "when xm list isn't executable" do it "should be nil" do - Facter::Util::Resolution.stubs(:exec).with('/usr/sbin/xm list').returns(nil) + Facter::Util::Resolution.stubs(:exec).with('/usr/sbin/xm list 2>/dev/null').returns(nil) Facter::Util::Xendomains.get_domains.should == nil end end -- 1.7.4.1 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-dev@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.