Skip to content

Commit a289bb9

Browse files
committed
(PA-6032) Update tests for Ubuntu systemd behavior
1 parent 779595a commit a289bb9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

acceptance/tests/resource/service/ticket_5024_systemd_enabling_masked_service.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
agents.each do |agent|
2727
platform = agent.platform.variant
2828

29-
if agent['platform'] =~ /(debian|ubuntu)/
29+
if agent['platform'] =~ /ubuntu-24.04-amd64/
30+
init_script_systemd = "/usr/lib/systemd/system/#{package_name[platform]}.service"
31+
elsif agent['platform'] =~ /(debian|ubuntu)/
3032
init_script_systemd = "/lib/systemd/system/#{package_name[platform]}.service"
3133
else
3234
init_script_systemd = "/usr/lib/systemd/system/#{package_name[platform]}.service"

0 commit comments

Comments
 (0)