Skip to content

Commit

Permalink
tests: (f35) Stop network and storage libvirt services at the test te…
Browse files Browse the repository at this point in the history
…ardown

Same as we do for libvirtd / virtqemud.

We do remove state in /var/run, without restarting the services libvirt
get's somehow confused.
Starting is done automatically as these are socket activated.
  • Loading branch information
KKoukiou committed Sep 22, 2021
1 parent c27d43b commit a83dc18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/machineslib.py
Expand Up @@ -200,6 +200,8 @@ def setUp(self):

self.startLibvirt()
self.addCleanup(m.execute, f"systemctl stop {self.getLibvirtServiceName()}")
if m.image in ["fedora-35"]:
self.addCleanup(m.execute, "systemctl stop virtstoraged.service virtnetworkd.service")

# Stop all domains
self.addCleanup(m.execute, "for d in $(virsh list --name); do virsh destroy $d || true; done")
Expand Down

0 comments on commit a83dc18

Please sign in to comment.