]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: test the default required operational state for CAN devices 30967/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2024 16:38:55 +0000 (01:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jan 2024 19:05:43 +0000 (04:05 +0900)
test/test-network/systemd-networkd-tests.py

index 6d074e67ff53af986c0d032c375837303985381c..7bf2f5014530413d9e01c03dfd2b00046694b6c2 100755 (executable)
@@ -1772,6 +1772,8 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
         start_networkd()
 
         self.wait_online(['vcan99:carrier', 'vcan98:carrier'])
+        # For can devices, 'carrier' is the default required operational state.
+        self.wait_online(['vcan99', 'vcan98'])
 
         # https://github.com/systemd/systemd/issues/30140
         output = check_output('ip -d link show vcan99')
@@ -1788,6 +1790,8 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
         start_networkd()
 
         self.wait_online(['vxcan99:carrier', 'vxcan-peer:carrier'])
+        # For can devices, 'carrier' is the default required operational state.
+        self.wait_online(['vxcan99', 'vxcan-peer'])
 
     @expectedFailureIfModuleIsNotAvailable('wireguard')
     def test_wireguard(self):