summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-02-15 11:44:24 +0100
committerGitHub <noreply@github.com>2019-02-15 11:44:24 +0100
commita0279563d74dccdc0d75fd5068cf680219236344 (patch)
tree0734cce09fe3b840cc4fdff969b2769fb3cf1440 /test
parentdhcp: ignore padding of 'chaddr' in DHCP server response (diff)
parenttest-network: add tests for wildcards in networkctl (diff)
downloadsystemd-a0279563d74dccdc0d75fd5068cf680219236344.tar.xz
systemd-a0279563d74dccdc0d75fd5068cf680219236344.zip
Merge pull request #11719 from yuwata/networkctl-wildcards
networkctl: accept wildcards to specify links
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 741681bdfd..8bd8581697 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -276,6 +276,18 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
print(output)
self.assertRegex(output, '00:50:56:c0:00:28')
+ output = subprocess.check_output(['networkctl', 'list']).rstrip().decode('utf-8')
+ self.assertRegex(output, '1 lo ')
+ self.assertRegex(output, 'dropin-test')
+
+ output = subprocess.check_output(['networkctl', 'list', 'dropin-test']).rstrip().decode('utf-8')
+ self.assertNotRegex(output, '1 lo ')
+ self.assertRegex(output, 'dropin-test')
+
+ output = subprocess.check_output(['networkctl', 'list', 'dropin-*']).rstrip().decode('utf-8')
+ self.assertNotRegex(output, '1 lo ')
+ self.assertRegex(output, 'dropin-test')
+
def test_bridge(self):
self.copy_unit_to_networkd_unit_path('25-bridge.netdev')
self.start_networkd()