mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-09-21 09:44:58 +03:00
networkd-test: support online state in networkctl status output
networkctl status now outputs an online state. Fix up the tests to account for this.
This commit is contained in:
committed by
Yu Watanabe
parent
4a481ec4ae
commit
1940b3a7cd
@@ -412,6 +412,7 @@ DHCP={dhcp_mode}
|
|||||||
out = subprocess.check_output(['networkctl', '-n', '0', 'status', self.iface])
|
out = subprocess.check_output(['networkctl', '-n', '0', 'status', self.iface])
|
||||||
self.assertRegex(out, br'Type:\s+ether')
|
self.assertRegex(out, br'Type:\s+ether')
|
||||||
self.assertRegex(out, br'State:\s+routable.*configured')
|
self.assertRegex(out, br'State:\s+routable.*configured')
|
||||||
|
self.assertRegex(out, br'Online state:\s+online')
|
||||||
self.assertRegex(out, br'Address:\s+192.168.5.\d+')
|
self.assertRegex(out, br'Address:\s+192.168.5.\d+')
|
||||||
if ipv6:
|
if ipv6:
|
||||||
self.assertRegex(out, br'2600::')
|
self.assertRegex(out, br'2600::')
|
||||||
|
Reference in New Issue
Block a user