]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: reconfigure interface instead of restarting networkd 21122/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Oct 2021 17:47:30 +0000 (02:47 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Oct 2021 23:20:29 +0000 (08:20 +0900)
test/test-network/systemd-networkd-tests.py

index a5b26b102fdcbd1ee9424717c9066aaac58833c8..ac5447b9ffd669cd76f73eb0978570a2b2b58d54 100755 (executable)
@@ -2029,8 +2029,8 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         print(output)
         self.assertNotIn('deprecated', output)
 
-        # 2. restart networkd to reconfigure the interface.
-        restart_networkd()
+        # 2. reconfigure the interface.
+        check_output(*networkctl_cmd, 'reconfigure', 'dummy98', env=env)
         self.wait_online(['dummy98:routable'])
 
         # 3. check the deprecated flag is set for the address configured with PreferredLifetime=0