diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-22 16:42:55 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-22 16:42:55 +0900 |
commit | 56dfde0d5451380bfc119742cd8f6d8aed2bc9d0 (patch) | |
tree | e67b1d7bed82df525f40e28ae10f3a35c28ea87f /test/test-network | |
parent | b09ec84700d4a645e047e156284ada54fe8b6d7d (diff) | |
download | systemd-56dfde0d5451380bfc119742cd8f6d8aed2bc9d0.tar.gz |
test-network: add testcase for no managed interface
Diffstat (limited to 'test/test-network')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 78ec047e52..12c7a1391e 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -854,7 +854,7 @@ class Utilities(): This returns if the links reached the requested operstate/setup_state; otherwise it raises CalledProcessError or fails test assertion. """ - args = wait_online_cmd + [f'--timeout={timeout}'] + [f'--interface={link}' for link in links_with_operstate] + args = wait_online_cmd + [f'--timeout={timeout}'] + [f'--interface={link}' for link in links_with_operstate] + [f'--ignore={link}' for link in protected_links] if bool_any: args += ['--any'] if ipv4: @@ -1153,6 +1153,10 @@ class WaitOnlineTests(unittest.TestCase, Utilities): def tearDown(self): tear_down_common() + def test_wait_online_all_unmanaged(self): + start_networkd() + self.wait_online([]) + def test_wait_online_any(self): copy_network_unit('25-bridge.netdev', '25-bridge.network', '11-dummy.netdev', '11-dummy.network') start_networkd() |