test-network: fix matching string

This partially reverts 5515f2169c.
As the commit changes 'networkctl list', not 'networkctl status'.
This commit is contained in:
Yu Watanabe
2022-09-23 10:43:17 +09:00
parent 3874765735
commit 767bc538c5
+2 -2
View File
@@ -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',