summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-08-04 17:27:56 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-08-19 13:52:59 -0700
commit6919d2c082ad2bdf1bcc19cd1b62c1befc75133c (patch)
treed6f71b48cc0764f5826719e5f238604b66053d24
parent80092091fb986eb013a12045cdb5f0efe3490702 (diff)
downloadpuppet-6919d2c082ad2bdf1bcc19cd1b62c1befc75133c.tar.gz
puppet-6919d2c082ad2bdf1bcc19cd1b62c1befc75133c.tar.xz
puppet-6919d2c082ad2bdf1bcc19cd1b62c1befc75133c.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> (cherry picked from commit 0efe900902f0a6528c78c966b73f3eb6c720353b)
-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')