]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tests: ignore router state in networkd test (#6390)
authorMartin Pitt <martinpitt@users.noreply.github.com>
Mon, 17 Jul 2017 22:06:35 +0000 (00:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 17 Jul 2017 22:06:35 +0000 (00:06 +0200)
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.

test/networkd-test.py

index eee8b65ec01050a8cebcac618228e54398033d41..9bf7ee0019d7a53eaf1dc9e64b3e3ad21c9ed5ba 100755 (executable)
@@ -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])