mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +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:
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 New Issue
Block a user