summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-03-13 11:48:14 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-03-13 11:48:14 -0700
commitd1e3714c9a272d56bb4a4f0c1807a883fb4cb48c (patch)
tree10cccaa5a28bf67dc6b6c6e70b144564e3cd0f1b
parentb7c6878f15327879cdd937b956082eaf61069c13 (diff)
parent79b9938e5eaa0d7b6cff2c31ccae232d64ba440d (diff)
downloadchef-d1e3714c9a272d56bb4a4f0c1807a883fb4cb48c.tar.gz
Merge pull request #3069 from chef/jdm/posh
Mark failing test as pending on versions of powershell < 4
-rw-r--r--spec/functional/resource/powershell_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/functional/resource/powershell_spec.rb b/spec/functional/resource/powershell_spec.rb
index 1b3ac844e0..56a905efe7 100644
--- a/spec/functional/resource/powershell_spec.rb
+++ b/spec/functional/resource/powershell_spec.rb
@@ -56,7 +56,8 @@ describe Chef::Resource::WindowsScript::PowershellScript, :windows_only do
resource.run_action(:run)
end
- it "returns the -27 for a powershell script that exits with -27" do
+ it "returns the -27 for a powershell script that exits with -27", :windows_powershell_dsc_only do
+ # This is broken on Powershell < 4.0
file = Tempfile.new(['foo', '.ps1'])
begin
file.write "exit -27"