From: Martin Pitt Date: Mon, 17 Jul 2017 22:06:35 +0000 (+0200) Subject: tests: ignore router state in networkd test (#6390) X-Git-Tag: v235~320 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23fa427d660be54ba3fa98842023dd9b7e77a1b0;p=thirdparty%2Fsystemd.git 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. --- diff --git a/test/networkd-test.py b/test/networkd-test.py index eee8b65ec01..9bf7ee0019d 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])