1
1
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:
Alvin Šipraga 2021-04-23 14:19:56 +02:00 committed by Yu Watanabe
parent 4a481ec4ae
commit 1940b3a7cd

View File

@ -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::')