From: Yu Watanabe Date: Fri, 10 May 2024 05:36:38 +0000 (+0900) Subject: test-network: do not fail test_macvlan() with old kernel or ip command X-Git-Tag: v256-rc2~54^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a4f9139d904e4c870c0997a57a7f134c322a089;p=thirdparty%2Fsystemd.git test-network: do not fail test_macvlan() with old kernel or ip command --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index a6cfa91382a..8531f963b15 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -1711,7 +1711,8 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities): self.assertIn(' mtu 2000 ', output) self.assertIn(f' macvlan mode {mode} ', output) self.assertIn(' bcqueuelen 1234 ', output) - self.assertIn(' bclim 2147483647 ', output) + if ' bclim ' in output: # This is new in kernel and iproute2 v6.4 + self.assertIn(' bclim 2147483647 ', output) @expectedFailureIfModuleIsNotAvailable('ipvlan') def test_ipvlan(self):