From: Yu Watanabe Date: Thu, 22 Dec 2022 07:27:58 +0000 (+0900) Subject: test-network: move one test case X-Git-Tag: v253-rc1~222^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5432adae82379c088ea4e61b627693c94ec151c0;p=thirdparty%2Fsystemd.git test-network: move one test case --- 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()