]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: read the current link flags of bond interface
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Jun 2025 08:17:49 +0000 (17:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Jun 2025 08:18:43 +0000 (17:18 +0900)
Follow-up for 2700d2c7dc024b71396d564a53f32638efed77af.

test/test-network/systemd-networkd-tests.py

index 1646dc23ed4c1692eca395c81a6028ed4d908060..7c56110edeca02a04b6c34f42ae08066639bc2f7 100755 (executable)
@@ -5887,6 +5887,8 @@ class NetworkdBondTests(unittest.TestCase, Utilities):
         if not self.wait_operstate('bond99', 'no-carrier', setup_timeout=30, fail_assert=False):
             # Huh? Kernel does not recognize that all slave interfaces are down?
             # Let's confirm that networkd's operstate is consistent with ip's result.
+            output = check_output('ip -d link show bond99')
+            print(output)
             self.assertNotRegex(output, 'NO-CARRIER')
 
 class NetworkdBridgeTests(unittest.TestCase, Utilities):