Skip to content

Commit

Permalink
XXX check if the iface was really removed
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Nov 6, 2023
1 parent c7784b4 commit ca32350
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/check-machines-nics
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import json

from machineslib import VirtualMachinesCase
from machinesxmls import TEST_NETWORK4_XML, TEST_NETWORK_XML
from testlib import no_retry_when_changed, nondestructive, test_main, wait
from testlib import sit, no_retry_when_changed, nondestructive, test_main, wait


@nondestructive
Expand Down Expand Up @@ -195,8 +195,13 @@ class TestMachinesNICs(VirtualMachinesCase):
self.waitCirrOSBooted(args['logfile'])
self.goToVmPage("subVmTest1")

m.execute("set -x; virsh domiflist subVmTest1 >&2")

self.deleteIface(1)
b.wait_not_present("#vm-subVmTest1-network-1-mac")
try:
b.wait_not_present("#vm-subVmTest1-network-1-mac")
finally:
m.execute("set -x; virsh domiflist subVmTest1 >&2")

return

Expand Down

0 comments on commit ca32350

Please sign in to comment.