summaryrefslogtreecommitdiffstats
path: root/spec/unit/provider/exec/shell_spec.rb
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-07-27 17:04:45 -0700
committerJosh Cooper <josh@puppetlabs.com>2011-07-28 14:32:13 -0700
commitd9ce88d10707268fe41c8f3ad1166137fe8e202f (patch)
tree2d1a40b19a40e8e56be539a4b9cf71b19056a083 /spec/unit/provider/exec/shell_spec.rb
parent0668c5e4ef080c5dd7e37f35b72b484ca6574fdb (diff)
downloadpuppet-d9ce88d10707268fe41c8f3ad1166137fe8e202f.tar.gz
puppet-d9ce88d10707268fe41c8f3ad1166137fe8e202f.tar.xz
puppet-d9ce88d10707268fe41c8f3ad1166137fe8e202f.zip
(#8663) Disable spec tests for unsupported functionality on Windows
The mount, shell, and ssh_authorized_key types are not supported on Windows, so these spec tests have been disabled when running on Windows. One of the compiler spec tests fails on Windows because Puppet::Util.execute attempts to execute a program named "git rev-parse HEAD". This has different semantics than Unix, where the command is splatted, Kernel.exec(*command). Since this truly is a Windows bug, I removed the fails_on_windows tag and updated ticket #8410. Reviewed-by: Jacob Helwig <jacob@puppetlabs.com>
Diffstat (limited to 'spec/unit/provider/exec/shell_spec.rb')
-rwxr-xr-xspec/unit/provider/exec/shell_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/exec/shell_spec.rb b/spec/unit/provider/exec/shell_spec.rb
index 4e1f00281..62036a79c 100755
--- a/spec/unit/provider/exec/shell_spec.rb
+++ b/spec/unit/provider/exec/shell_spec.rb
@@ -3,7 +3,7 @@ require 'spec_helper'
provider_class = Puppet::Type.type(:exec).provider(:shell)
-describe provider_class, :fails_on_windows => true do
+describe provider_class, :unless => Puppet.features.microsoft_windows? do
before :each do
@resource = Puppet::Resource.new(:exec, 'foo')
@provider = provider_class.new(@resource)