From: Yu Watanabe Date: Fri, 23 Sep 2022 01:43:10 +0000 (+0900) Subject: test-network: fix matching string X-Git-Tag: v252-rc1~107^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=767bc538c511501f714a3630a614eaf21804dd55;p=thirdparty%2Fsystemd.git test-network: fix matching string This partially reverts 5515f2169cb5980996044eabb5f1b35e00fd81eb. As the commit changes 'networkctl list', not 'networkctl status'. --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index b90a07e22bd..2f638d158a6 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -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',