summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-08-04 17:27:56 -0700
committerJosh Cooper <josh@puppetlabs.com>2011-08-04 17:33:58 -0700
commit0efe900902f0a6528c78c966b73f3eb6c720353b (patch)
tree57820b25c0b97e011ac5e55dda7382d2f9934349
parent3fde2a6e3176f346e8727291ec2c53eac93ff0cb (diff)
downloadpuppet-0efe900902f0a6528c78c966b73f3eb6c720353b.tar.gz
puppet-0efe900902f0a6528c78c966b73f3eb6c720353b.tar.xz
puppet-0efe900902f0a6528c78c966b73f3eb6c720353b.zip
(#8663) Exclude exec timeout test on Windows
The exec provider is not yet supported for Windows and this test relies on /bin/sleep. And due to #8410 it attempts to execute the program named "sleep 1", with variations of "sleep 1".bat, etc. This test needs to be reworked for Windows when the exec provider is implemented. Reviewed-by: Nick Lewis <nick@puppetlabs.com>
-rwxr-xr-xspec/unit/type/exec_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/type/exec_spec.rb b/spec/unit/type/exec_spec.rb
index 2861bb0e3..8146dce92 100755
--- a/spec/unit/type/exec_spec.rb
+++ b/spec/unit/type/exec_spec.rb
@@ -334,7 +334,8 @@ describe Puppet::Type.type(:exec) do
end
end
- it "should fail if timeout is exceeded" do
+ # REMIND: the exec provider is not supported on windows yet
+ it "should fail if timeout is exceeded", :fails_on_windows => true do
File.stubs(:exists?).with('/bin/sleep').returns(true)
File.stubs(:exists?).with('sleep').returns(false)
sleep_exec = Puppet::Type.type(:exec).new(:name => 'sleep 1', :path => ['/bin'], :timeout => '0.2')