Skip to content

Commit

Permalink
test: wait for interfaces online
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwata committed Jun 10, 2021
1 parent 527653f commit d347e2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/networkd-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ def setUp(self):
''')
subprocess.call(['systemctl', 'reset-failed', 'systemd-networkd', 'systemd-resolved'])
subprocess.check_call(['systemctl', 'start', 'systemd-networkd'])
subprocess.check_call([NETWORKD_WAIT_ONLINE,
'--interface', 'mybridge',
'--interface', 'port1',
'--interface', 'port2'])

def tearDown(self):
subprocess.check_call(['systemctl', 'stop', 'systemd-networkd.socket'])
Expand Down

0 comments on commit d347e2c

Please sign in to comment.