summaryrefslogtreecommitdiff
path: root/test/networkd-test.py
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@users.noreply.github.com>2017-07-18 00:06:35 +0200
committerLennart Poettering <lennart@poettering.net>2017-07-18 00:06:35 +0200
commit23fa427d660be54ba3fa98842023dd9b7e77a1b0 (patch)
treef94ec945e0e462dc807a8c00a1ce1c08e7c0cbdb /test/networkd-test.py
parentdb3f45e2d2586d78f942a43e661415bc50716d11 (diff)
downloadsystemd-23fa427d660be54ba3fa98842023dd9b7e77a1b0.tar.gz
tests: ignore router state in networkd test (#6390)
In networkd-test.py, don't assert that the router state is "routable". While it should eventually become that, we don't wait for it, and thus at that point it often is "carrier" or "degrated" still. It is also not really relevant as this only tests the "client" side interface.
Diffstat (limited to 'test/networkd-test.py')
-rwxr-xr-xtest/networkd-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/networkd-test.py b/test/networkd-test.py
index eee8b65ec0..9bf7ee0019 100755
--- a/test/networkd-test.py
+++ b/test/networkd-test.py
@@ -334,7 +334,7 @@ DHCP=%s
# check networkctl state
out = subprocess.check_output(['networkctl'])
- self.assertRegex(out, (r'%s\s+ether\s+routable\s+unmanaged' % self.if_router).encode())
+ self.assertRegex(out, (r'%s\s+ether\s+[a-z-]+\s+unmanaged' % self.if_router).encode())
self.assertRegex(out, (r'%s\s+ether\s+routable\s+configured' % self.iface).encode())
out = subprocess.check_output(['networkctl', 'status', self.iface])