We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a33783 + dc88738 commit 2f83bc8Copy full SHA for 2f83bc8
libvirt/tests/src/virtual_network/iface_options.py
@@ -404,7 +404,8 @@ def check_user_network(session):
404
" on guest")
405
# Check gateway address
406
gateway = str(utils_net.get_default_gateway(False, session))
407
- if expect_gw not in gateway:
+ pattern = re.compile(expect_gw, re.MULTILINE)
408
+ if not pattern.search(gateway):
409
test.fail("The gateway on guest is %s, while expect is %s" %
410
(gateway, expect_gw))
411
# Check dns server address
0 commit comments