Skip to content

Commit 2abe258

Browse files
Fix test for SystemdService.is_masked
1 parent 87cd7e5 commit 2abe258

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_modules.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,14 @@ def test_ssh_service(host, docker_image):
127127
assert ssh.is_enabled
128128

129129

130+
@all_images
130131
def test_service_systemd_mask(host, docker_image):
131132
name = "sshd" if docker_image == "rockylinux9" else "ssh"
132133
ssh = host.service(name)
133134
assert not ssh.is_masked
134-
host.run("systemctl mask ssh")
135+
host.run(f"systemctl mask -- {name}")
135136
assert ssh.is_masked
136-
host.run("systemctl unmask ssh")
137+
host.run(f"systemctl unmask -- {name}")
137138
assert not ssh.is_masked
138139

139140

0 commit comments

Comments
 (0)