]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: move one test case
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 22 Dec 2022 07:27:58 +0000 (16:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 22 Dec 2022 07:27:58 +0000 (16:27 +0900)
test/test-network/systemd-networkd-tests.py

index dec1d085b959890e70cbf0d18ce06c6f4eb3b68b..37705d8c729e2616289a0a6f2471891eeb729106 100755 (executable)
@@ -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()