1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

test-network: add missing sleep()

Fixes a bug introduced by 7ef26afca5.

Fixes #33098.
This commit is contained in:
Yu Watanabe 2024-06-01 10:40:30 +09:00 committed by Daan De Meyer
parent ecce45cd3f
commit 77356099ce

View File

@ -1058,6 +1058,7 @@ class Utilities():
for _ in range(setup_timeout * 2): for _ in range(setup_timeout * 2):
if not link_exists(link): if not link_exists(link):
time.sleep(0.5)
continue continue
output = networkctl_status(link) output = networkctl_status(link)
if re.search(rf'(?m)^\s*State:\s+{operstate}\s+\({setup_state}\)\s*$', output): if re.search(rf'(?m)^\s*State:\s+{operstate}\s+\({setup_state}\)\s*$', output):