tests: use iptables --wait

QubesOS/qubes-issues#3665 affects also tests...
This commit is contained in:
Marek Marczykowski-Górecki 2018-10-24 14:15:18 +02:00
parent 2f3a984742
commit 4742a630f2
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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(