[Pkg-puppet-devel] [SCM] Packaging of Facter for debian branch, experimental, updated. debian/1.5.8-2-160-gb26a2a8
Jacob Helwig
jacob at puppetlabs.com
Tue May 10 08:39:58 UTC 2011
The following commit has been merged in the experimental branch:
commit 09b9f9bd84e09f8ca9bb7d4e611082c047fac94d
Author: Jacob Helwig <jacob at puppetlabs.com>
Date: Mon Mar 21 11:54:55 2011 -0700
(#6795) Update tests to reflect changed exec
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
--
Packaging of Facter for debian
More information about the Pkg-puppet-devel
mailing list