]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: add missing sleep()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 1 Jun 2024 01:40:30 +0000 (10:40 +0900)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 1 Jun 2024 06:25:10 +0000 (08:25 +0200)
Fixes a bug introduced by 7ef26afca555a5e167ebc59514490906a46db2cb.

Fixes #33098.

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

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