diff options
author | kaustubh-d <kausubh@clogeny.com> | 2013-07-22 08:57:41 -0700 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-07-23 10:36:15 -0700 |
commit | 2e5cb819b475fec8286da272102e61ae795af02b (patch) | |
tree | 6ea6e4870ed3f67041396ab78a130e3ecf4e2807 | |
parent | 214229a909c4496449c20809760266c9c72602ca (diff) | |
download | chef-2e5cb819b475fec8286da272102e61ae795af02b.tar.gz |
run ifconfig functional tests only for small subset of platforms.
-rw-r--r-- | spec/functional/resource/ifconfig_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/functional/resource/ifconfig_spec.rb b/spec/functional/resource/ifconfig_spec.rb index 2933a49edb..a766bb238b 100644 --- a/spec/functional/resource/ifconfig_spec.rb +++ b/spec/functional/resource/ifconfig_spec.rb @@ -19,7 +19,10 @@ require 'functional/resource/base' require 'chef/mixin/shell_out' -describe Chef::Resource::Ifconfig, :requires_root, :unix_only do +# run this test only for following platforms. +include_flag = !(['ubuntu', 'centos', 'aix'].include?(ohai[:platform])) + +describe Chef::Resource::Ifconfig, :requires_root, :external => include_flag do include Chef::Mixin::ShellOut let(:new_resource) do |