]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: check assigned address is not tentative state
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 11 Jul 2020 21:26:34 +0000 (06:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 15 Jul 2020 08:14:30 +0000 (17:14 +0900)
test/test-network/systemd-networkd-tests.py

index 4dca56f7dcb86ae441a10b16982dbffe9ef536ae..31ef04af8a48d146272014f97890d189aadb531b 100755 (executable)
@@ -3168,6 +3168,12 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
         self.assertRegex(output, '2600::')
         self.assertNotRegex(output, '192.168.5')
 
+        output = check_output('ip addr show dev veth99')
+        print(output)
+        self.assertRegex(output, '2600::')
+        self.assertNotRegex(output, '192.168.5')
+        self.assertNotRegex(output, 'tentative')
+
         # Confirm that ipv6 token is not set in the kernel
         output = check_output('ip token show dev veth99')
         print(output)