From 79b9938e5eaa0d7b6cff2c31ccae232d64ba440d Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Thu, 12 Mar 2015 10:00:03 -0700 Subject: Mark failing test as pending on versions of powershell < 4 This case has never worked before 6c724e866274a728bc66740ab352db7da7d7958f. It was fixed for 4, however it seems that does not apply to versions < 4. --- spec/functional/resource/powershell_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.1