mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
test-network: add testcase for no managed interface
This commit is contained in:
parent
b09ec84700
commit
56dfde0d54
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user