1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

test-network: add a tiny test for ID_NET_DRIVER= udev property

Test for #11721.
This commit is contained in:
Yu Watanabe 2019-02-16 05:44:38 +09:00
parent 03dd7b7dde
commit 96fb7dc30f

View File

@ -288,6 +288,11 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
self.assertNotRegex(output, '1 lo ')
self.assertRegex(output, 'dropin-test')
output = subprocess.check_output(['networkctl', 'status', 'dropin-*']).rstrip().decode('utf-8')
self.assertNotRegex(output, '1 lo ')
self.assertRegex(output, 'dropin-test')
self.assertRegex(output, 'Driver: dummy')
def test_bridge(self):
self.copy_unit_to_networkd_unit_path('25-bridge.netdev')
self.start_networkd()