diff options
author | Jeremiah Snapp <jeremiah@chef.io> | 2019-06-24 11:12:28 -0400 |
---|---|---|
committer | Jeremiah Snapp <jeremiah@chef.io> | 2019-06-24 15:14:36 -0400 |
commit | 9dae89acecb7631efa53a3803b2abc758fc066e6 (patch) | |
tree | 59c9edd0fef74555a1ec7e7df844d07b4e7e6aa1 | |
parent | fdbdc97b7f7bace8df63f11d452de4ff26567e6d (diff) | |
download | chef-9dae89acecb7631efa53a3803b2abc758fc066e6.tar.gz |
Set permissions on /etc/init.d/inittest to get tests to pass on SLES 11
Chef::Resource::Service tests were failing on SLES 11 x86_64
and SLES 11 s390x because the permissions weren't correct.
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
-rw-r--r-- | spec/functional/resource/insserv_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/functional/resource/insserv_spec.rb b/spec/functional/resource/insserv_spec.rb index a923753019..55a803d431 100644 --- a/spec/functional/resource/insserv_spec.rb +++ b/spec/functional/resource/insserv_spec.rb @@ -75,6 +75,7 @@ describe Chef::Resource::Service, :requires_root, :sles11 do before(:all) do File.delete("/etc/init.d/inittest") if File.exists?("/etc/init.d/inittest") FileUtils.cp((File.join(File.dirname(__FILE__), "/../assets/inittest")).to_s, "/etc/init.d/inittest") + FileUtils.chmod(0755, "/etc/init.d/inittest") end after(:all) do |