]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-network: various cleanups 23969/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 9 Jul 2022 11:05:23 +0000 (20:05 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Jul 2022 17:57:24 +0000 (19:57 +0200)
commita962d857979014f76fcf62d50e54df1c0c46e627
treeb260f88e1d1d9c6f14df8842281386cae0aa8fde
parent286bf3a940d29904531fb9fe2145c2adeac104a3
test-network: various cleanups

- introduce several helper functions
- do not list unit files, but remove the runtime unit directory in
  tearDown().
- do not list used interfaces, but remove all interfaces previously not
  exists in tearDown().
- save routes and routing policy rules before running tests, and flush
  unnecessary routes and rules in each tearDown() calls.
- drop many time.sleep() calls.
- call tearDown() after each sub tests.
- shorten code.
- several coding style fixes.
- etc, etc...

Hopefully, this improves performance of the test.
test/test-network/systemd-networkd-tests.py