From 6919d2c082ad2bdf1bcc19cd1b62c1befc75133c Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Thu, 4 Aug 2011 17:27:56 -0700 Subject: (#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 (cherry picked from commit 0efe900902f0a6528c78c966b73f3eb6c720353b) --- spec/unit/type/exec_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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') -- cgit