Browse Source

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.
Marek Marczykowski-Górecki 4 năm trước cách đây
mục cha
commit
8965e9a8e4
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      qubes/tests/integ/network.py

+ 3 - 0
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):