summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-09-23 03:43:10 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-23 03:43:17 +0200
commit767bc538c511501f714a3630a614eaf21804dd55 (patch)
tree0dc3bbef1330552b4f63cd1a57441c7f3860dc4d
parentnetworkctl: use "-" for empty LLDP entries (diff)
downloadsystemd-767bc538c511501f714a3630a614eaf21804dd55.tar.xz
systemd-767bc538c511501f714a3630a614eaf21804dd55.zip
test-network: fix matching string
This partially reverts 5515f2169cb5980996044eabb5f1b35e00fd81eb. As the commit changes 'networkctl list', not 'networkctl status'.
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py4
1 files 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',