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:
parent
ecce45cd3f
commit
77356099ce
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user