From: Yu Watanabe Date: Thu, 27 Jan 2022 22:17:08 +0000 (+0900) Subject: test-network: dummy interface is initially down when activation policy is manual X-Git-Tag: v251-rc1~436^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebb5036ff2e10d965264ff5868ff4af41548ef58;p=thirdparty%2Fsystemd.git test-network: dummy interface is initially down when activation policy is manual --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 0b17a58d065..c53092562a5 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -3075,10 +3075,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): start_networkd() always = test.startswith('always') - if test == 'manual': - initial_up = 'UP' in check_output('ip link show test1') - else: - initial_up = not test.endswith('down') # note: default is up + initial_up = test != 'manual' and not test.endswith('down') # note: default is up expect_up = initial_up next_up = not expect_up