From 8965e9a8e4e3bd26665a07720eb091ffed486404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 3 Dec 2019 13:43:19 +0100 Subject: [PATCH] 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. --- qubes/tests/integ/network.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qubes/tests/integ/network.py b/qubes/tests/integ/network.py index 9f8ba06d..5759e2df 100644 --- a/qubes/tests/integ/network.py +++ b/qubes/tests/integ/network.py @@ -389,6 +389,9 @@ class VmNetworkingMixin(object): if self.run_cmd(self.testnetvm, cmd) != 0: 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) def test_110_dynamic_attach(self):