Browse Source

tests: use iptables --wait

QubesOS/qubes-issues#3665 affects also tests...
Marek Marczykowski-Górecki 5 years ago
parent
commit
4742a630f2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      qubes/tests/integ/network.py

+ 2 - 1
qubes/tests/integ/network.py

@@ -104,7 +104,8 @@ class VmNetworkingMixin(object):
         run_netvm_cmd("ip link add test0 type dummy")
         run_netvm_cmd("ip link set test0 up")
         run_netvm_cmd("ip addr add {}/24 dev test0".format(self.test_ip))
-        run_netvm_cmd("iptables -I INPUT -d {} -j ACCEPT".format(self.test_ip))
+        run_netvm_cmd("iptables -I INPUT -d {} -j ACCEPT --wait".format(
+            self.test_ip))
         # ignore failure
         self.run_cmd(self.testnetvm, "killall --wait dnsmasq")
         run_netvm_cmd("dnsmasq -a {ip} -A /{name}/{ip} -i test0 -z".format(