]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: fix matching string
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 23 Sep 2022 01:43:10 +0000 (10:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 23 Sep 2022 01:43:17 +0000 (10:43 +0900)
This partially reverts 5515f2169cb5980996044eabb5f1b35e00fd81eb.
As the commit changes 'networkctl list', not 'networkctl status'.

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

index b90a07e22bd9bf5b6ba52cdd8f9e9b06adf4a7d5..2f638d158a6e602cea1b7be2bd761eeb93248607 100755 (executable)
@@ -1047,8 +1047,8 @@ class NetworkctlTests(unittest.TestCase, Utilities):
 
         output = check_output(*networkctl_cmd, '-n', '0', 'status', 'lo', env=env)
         print(output)
-        self.assertRegex(output, r'Link File: -')
-        self.assertRegex(output, r'Network File: -')
+        self.assertRegex(output, r'Link File: n/a')
+        self.assertRegex(output, r'Network File: n/a')
 
     def test_delete_links(self):
         copy_network_unit('11-dummy.netdev', '11-dummy.network',