1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

test-network: update format used by networkctl status

This commit is contained in:
Yu Watanabe 2019-02-19 17:38:30 +09:00
parent 5f06ba8018
commit fde66c2120

View File

@ -287,7 +287,7 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
self.assertRegex(output, 'dropin-test') self.assertRegex(output, 'dropin-test')
output = subprocess.check_output(['networkctl', 'status', 'dropin-*']).rstrip().decode('utf-8') output = subprocess.check_output(['networkctl', 'status', 'dropin-*']).rstrip().decode('utf-8')
self.assertNotRegex(output, '1 lo ') self.assertNotRegex(output, '1: lo ')
self.assertRegex(output, 'dropin-test') self.assertRegex(output, 'dropin-test')
self.assertRegex(output, 'Driver: dummy') self.assertRegex(output, 'Driver: dummy')