Skip to content

Commit 12cabe6

Browse files
skyamgarpgithub-actions[bot]
authored andcommitted
(PA-6032) Update tests for Ubuntu systemd behavior
(cherry picked from commit a289bb9)
1 parent e1c1b2d commit 12cabe6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: 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)