tests/network: let xl devd bring the interfaces up

xl devd doesn't use startup notify, so when the service is started
(according to systemd) it may still be initializing interfaces. Add a
little sleep for that.
This commit is contained in:
Marek Marczykowski-Górecki 2019-12-03 13:43:19 +01:00
parent ffa1a40e6e
commit 8965e9a8e4
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -389,6 +389,9 @@ class VmNetworkingMixin(object):
if self.run_cmd(self.testnetvm, cmd) != 0: if self.run_cmd(self.testnetvm, cmd) != 0:
self.fail("Command '%s' failed" % cmd) self.fail("Command '%s' failed" % cmd)
# let it initialize the interface(s)
time.sleep(1)
self.assertEqual(self.run_cmd(self.testvm1, self.ping_ip), 0) self.assertEqual(self.run_cmd(self.testvm1, self.ping_ip), 0)
def test_110_dynamic_attach(self): def test_110_dynamic_attach(self):