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:
parent
ffa1a40e6e
commit
8965e9a8e4
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user