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:
parent
03dd7b7dde
commit
96fb7dc30f
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user