From 9dae89acecb7631efa53a3803b2abc758fc066e6 Mon Sep 17 00:00:00 2001 From: Jeremiah Snapp Date: Mon, 24 Jun 2019 11:12:28 -0400 Subject: 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 --- spec/functional/resource/insserv_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec') 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 -- cgit v1.2.1