diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-27 23:17:08 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-27 23:17:08 +0100 |
commit | ebb5036ff2e10d965264ff5868ff4af41548ef58 (patch) | |
tree | e5282dea36b7a1d27d4131d540ba928c347e1151 /test | |
parent | test-network: wait for the link is activated (diff) | |
download | systemd-ebb5036ff2e10d965264ff5868ff4af41548ef58.tar.xz systemd-ebb5036ff2e10d965264ff5868ff4af41548ef58.zip |
test-network: dummy interface is initially down when activation policy is manual
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 0b17a58d06..c53092562a 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 |