diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index dec1d085b95..37705d8c729 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -1136,6 +1136,15 @@ class NetworkdMatchTests(unittest.TestCase, Utilities): output = check_output(*networkctl_cmd, '-n', '0', 'status', 'dummy98-2', env=env) self.assertIn('Network File: /run/systemd/network/12-dummy-match-altname.network', output) + def test_match_udev_property(self): + copy_network_unit('12-dummy.netdev', '13-not-match-udev-property.network', '14-match-udev-property.network') + start_networkd() + self.wait_online(['dummy98:routable']) + + output = check_output(*networkctl_cmd, '-n', '0', 'status', 'dummy98', env=env) + print(output) + self.assertRegex(output, 'Network File: /run/systemd/network/14-match-udev-property') + class NetworkdNetDevTests(unittest.TestCase, Utilities): def setUp(self): @@ -1154,15 +1163,6 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities): print(output) self.assertRegex(output, '00:50:56:c0:00:28') - def test_match_udev_property(self): - copy_network_unit('12-dummy.netdev', '13-not-match-udev-property.network', '14-match-udev-property.network') - start_networkd() - self.wait_online(['dummy98:routable']) - - output = check_output(*networkctl_cmd, '-n', '0', 'status', 'dummy98', env=env) - print(output) - self.assertRegex(output, 'Network File: /run/systemd/network/14-match-udev-property') - def test_wait_online_any(self): copy_network_unit('25-bridge.netdev', '25-bridge.network', '11-dummy.netdev', '11-dummy.network') start_networkd()