Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 677ece5

Browse files
committed
Skip test if no host MAC addresses are found
1 parent 79a6754 commit 677ece5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

tests/validation.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -463,11 +463,10 @@ def testNetworkValidation(self):
463463
hostmac = virtinst.util.get_host_network_devices()
464464
if len(hostmac) is not 0:
465465
hostmac = hostmac[0][4]
466-
467-
for params in ({'macaddr' : hostmac},):
468-
network = virtinst.VirtualNetworkInterface(*(), **params)
469-
self.assertRaises(RuntimeError, network.setup, \
470-
testconn)
466+
for params in ({'macaddr' : hostmac},):
467+
network = virtinst.VirtualNetworkInterface(*(), **params)
468+
self.assertRaises(RuntimeError, network.setup, \
469+
testconn)
471470

472471
# Test dynamic MAC/Bridge success
473472
try:

0 commit comments

Comments
 (0)