mirror of
https://github.com/systemd/systemd
synced 2024-07-22 18:55:10 +00: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:
parent
4a481ec4ae
commit
1940b3a7cd
|
@ -412,6 +412,7 @@ DHCP={dhcp_mode}
|
|||
out = subprocess.check_output(['networkctl', '-n', '0', 'status', self.iface])
|
||||
self.assertRegex(out, br'Type:\s+ether')
|
||||
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+')
|
||||
if ipv6:
|
||||
self.assertRegex(out, br'2600::')
|
||||
|
|
Loading…
Reference in a new issue