]> git.ipfire.org Git - thirdparty/systemd.git/commit - test/test-network/systemd-networkd-tests.py
test-network: convert wait_operstate() to recheck condition for timeout seconds
authorDan Streetman <ddstreet@canonical.com>
Wed, 8 Jan 2020 12:28:29 +0000 (07:28 -0500)
committerDan Streetman <ddstreet@canonical.com>
Thu, 9 Jan 2020 20:19:19 +0000 (15:19 -0500)
commita4632dc7d131a4ec41b6d59b8ab5e592ad72f346
tree7fc41820485615434fe3e4e9111b6bcccc8d2fd5
parent19cf3143cf9f69e0c3c86f7ea16773b734c55a92
test-network: convert wait_operstate() to recheck condition for timeout seconds

Failing after a single check leads to extra sleeps scattered through
test cases, and can also lead to false failures.  Instead perform a
recheck for a number of seconds until the state matches, and fail only
if the timeout is exceeded.

This allows removing all the manual sleeps in the testcases.
test/test-network/systemd-networkd-tests.py