diff --git a/test/integration/default/powershell_spec.rb b/test/integration/default/powershell_spec.rb index 23ad7aa3a..16deb1670 100644 --- a/test/integration/default/powershell_spec.rb +++ b/test/integration/default/powershell_spec.rb @@ -1,6 +1,9 @@ # encoding: utf-8 -return unless os.windows? +unless os.windows? + STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on Windows.\033[0m" + return +end script = <<-EOH Write-Output 'hello' diff --git a/test/integration/default/registry_key_spec.rb b/test/integration/default/registry_key_spec.rb index 6c88fe18e..4d6902975 100644 --- a/test/integration/default/registry_key_spec.rb +++ b/test/integration/default/registry_key_spec.rb @@ -1,6 +1,9 @@ # encoding: utf-8 -return unless os.windows? +unless os.windows? + STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on Windows.\033[0m" + return +end describe registry_key('HKLM\System\Test') do it { should exist } diff --git a/test/integration/default/secpol_spec.rb b/test/integration/default/secpol_spec.rb index 4ed939dbb..a19b2e77e 100644 --- a/test/integration/default/secpol_spec.rb +++ b/test/integration/default/secpol_spec.rb @@ -1,6 +1,9 @@ # encoding: utf-8 -return unless os.windows? +unless os.windows? + STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on Windows.\033[0m" + return +end describe security_policy do its('EnableAdminAccount') { should eq 1 } diff --git a/test/integration/default/wmi_spec.rb b/test/integration/default/wmi_spec.rb index 66a54a3f1..b2266b396 100644 --- a/test/integration/default/wmi_spec.rb +++ b/test/integration/default/wmi_spec.rb @@ -1,6 +1,9 @@ # encoding: utf-8 -return unless os.windows? +unless os.windows? + STDERR.puts "\033[1;33mTODO: Not running #{__FILE__} because we are not on Windows.\033[0m" + return +end # Get-WmiObject win32_service or Get-WmiObject -class win32_service # returns an array of service objects