From 767bc538c511501f714a3630a614eaf21804dd55 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 23 Sep 2022 10:43:10 +0900 Subject: [PATCH] test-network: fix matching string This partially reverts 5515f2169cb5980996044eabb5f1b35e00fd81eb. As the commit changes 'networkctl list', not 'networkctl status'. --- test/test-network/systemd-networkd-tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index b90a07e22b..2f638d158a 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',