]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: split out qdisc and wait-online tests from NetworkdNetworkTests 24222/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 6 Aug 2022 03:36:41 +0000 (12:36 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Aug 2022 10:37:50 +0000 (19:37 +0900)
test/test-network/systemd-networkd-tests.py

index 209f5a565cbdfa12e7977898a2a19d7ca09cc2fc..fddae84259416599b00e592c6412da8579eaccd3 100755 (executable)
@@ -3220,6 +3220,14 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         print(output)
         self.assertEqual(output, '')
 
+class NetworkdTCTests(unittest.TestCase, Utilities):
+
+    def setUp(self):
+        setup_common()
+
+    def tearDown(self):
+        tear_down_common()
+
     @expectedFailureIfModuleIsNotAvailable('sch_cake')
     def test_qdisc_cake(self):
         copy_network_unit('25-qdisc-cake.network', '12-dummy.netdev')
@@ -3475,6 +3483,14 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         print(output)
         self.assertRegex(output, 'qdisc teql1 31: root')
 
+class NetworkWaitOnlineTests(unittest.TestCase, Utilities):
+
+    def setUp(self):
+        setup_common()
+
+    def tearDown(self):
+        tear_down_common()
+
     def test_wait_online_ipv4(self):
         copy_network_unit('25-veth.netdev', '25-dhcp-server-with-ipv6-prefix.network', '25-dhcp-client-ipv4-ipv6ra-prefix-client-with-delay.network')
         start_networkd()